Jump to: Board index » General » Fusion

Macros: expression based on input measurements?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

Lucas Pfaff

  • Posts: 296
  • Joined: Mon Dec 03, 2012 3:35 pm

Macros: expression based on input measurements?

PostTue Nov 03, 2015 9:17 pm

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
Offline
User avatar

Rony Soussan

  • Posts: 727
  • Joined: Tue Nov 11, 2014 5:33 pm

Re: Macros: expression based on input measurements?

Offline

Lucas Pfaff

  • Posts: 296
  • Joined: Mon Dec 03, 2012 3:35 pm

Re: Macros: expression based on input measurements?

PostWed Nov 04, 2015 8:53 am

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!
Offline
User avatar

Rony Soussan

  • Posts: 727
  • Joined: Tue Nov 11, 2014 5:33 pm

Re: Macros: expression based on input measurements?

PostWed Nov 04, 2015 5:35 pm

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 :)

Return to Fusion

Who is online

Users browsing this forum: No registered users and 28 guests