Page 1 of 1

Keeping x-y coordinates consistent between renders

Posted: Thu Aug 08, 2019 5:55 pm
by hdonkx
Hi, sorry if this is frequently asked but - I'm trying to figure out how to get multiple renders to "line up" if some of the elements in the design are semi-random, since this seems to make ContextFree re-align and/or rescale the image to fit each time. Is there any way to render with a fixed resolution and lock it so that, for example, pixel 100,100 is always coordinate 1,1, even if some things spill over the edge? I thought maybe the border size setting was supposed to do this but it doesn't seem to help. Thanks for any help!

Re: Keeping x-y coordinates consistent between renders

Posted: Fri Aug 09, 2019 4:32 pm
by MtnViewJohn
Automatic sizing can be bypassed if you set an explicit size using the CF::Size configuration variable:

Code: Select all

CF::Size = [s 30 20]    // Fixed canvas 30 units wide and 20 units tall
You can move your design around in this fixed window:

Code: Select all

CF::Size = [s 30 20 x 5 y 3]    // Fixed canvas 30 units wide and 20 units tall
                                // shifted right 5 and up 3