Jump to: Board index » General » Fusion

Expression syntax to get value from other frame?

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

RobFromm

  • Posts: 21
  • Joined: Sun Jul 16, 2017 2:44 am

Expression syntax to get value from other frame?

PostTue Aug 22, 2017 9:28 pm

I think the title says it all. Are there expression statements that allow you to get the value of say angle of x rotation or x position from another object say 30 frames earlier? I have not found a good reference to expression syntax anywhere and what is in the tool manual for the custom tool doesn't seem to have anything like this described.
Thanks.
Offline
User avatar

Bryan Ray

  • Posts: 2488
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Expression syntax to get value from other frame?

PostWed Aug 23, 2017 12:01 am

You need the GetValue() method:

CC1:GetValue("Gamma", 10)

The method acts on the node before the colon. The first argument is an Input on that node, and the second is the frame from which to sample. You can get a frame relative to the current one using the time variable:

CC1:GetValue("Gamma", time-30)

There are lot of useful pointers on the archived VFXPedia:
https://www.steakunderwater.com/VFXPedi ... xpressions

I haven't thoroughly read through the official scripting manual yet, but I suspect a lot of that information is also available there.
http://documents.blackmagicdesign.com/F ... _Guide.pdf
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

RobFromm

  • Posts: 21
  • Joined: Sun Jul 16, 2017 2:44 am

Re: Expression syntax to get value from other frame?

PostWed Aug 23, 2017 3:03 am

Thanks so much. I'll play with that a while!

Return to Fusion

Who is online

Users browsing this forum: KrunoSmithy, Majestic-12 [Bot] and 28 guests