Keeping x-y coordinates consistent between renders

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: mtnviewmark, MtnViewJohn, chris

Post Reply
hdonkx
Posts: 1
Joined: Thu Aug 08, 2019 5:48 pm

Keeping x-y coordinates consistent between renders

Post by hdonkx » Thu Aug 08, 2019 5:55 pm

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!

User avatar
MtnViewJohn
Site Admin
Posts: 851
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Keeping x-y coordinates consistent between renders

Post by MtnViewJohn » Fri Aug 09, 2019 4:32 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest