Page 1 of 1

Macros: expression based on input measurements?

PostPosted: Tue Nov 03, 2015 9:17 pm
by Lucas Pfaff
Hi there,

sturggling at Macros again... :)

Here's what I want to do: in some Macros, I use generated material (like Background Node) which are, by default, the size of the comp. However we all know that not every input you might want to use is comp-size, and I'd really love to dynamically scale by the measurements of the inputs.

In Nuke I'd use something like "input0.width" and that would work fine, however I didn't really got there inside of Fusion. In worst case I'd have to add the size-controls inside the Macro, but I'd really rather do it more elegant like this.

Any ideas?

Best,
Rick

Re: Macros: expression based on input measurements?

PostPosted: Tue Nov 03, 2015 9:54 pm
by Rony Soussan

Re: Macros: expression based on input measurements?

PostPosted: Wed Nov 04, 2015 8:53 am
by Lucas Pfaff
Morning Rony,

thank you very much for the input! :)
That's really good news and easy to handle. I don't even need a dummy-node, it's fine using the first node in the chain I think :)

Best,
Rick


edit
even more elegant: you can set the expression in the generated node (e.g. the background) itself, without the resize. Makes it even more conveniant! :)
Thanks!

Re: Macros: expression based on input measurements?

PostPosted: Wed Nov 04, 2015 5:35 pm
by Rony Soussan
I use the dummy node because i'm used to building macro's and I like to have a dummy input node that I know i can keep in my expression.

In comp. What works is the way to do it :)