Page 1 of 1

Built-in variables for first and last frame numbers

PostPosted: Mon Dec 23, 2019 9:36 pm
by eniva100
Hello,

I am looking for the built-in variable for Fusion expressions that returns the number for the first frame in the composition and the variable that returns the last frame number.

My understanding is that the built-in variable time will go from the first frame number to the last frame number as the playhead moves.


Thanks,
Enrique

Re: Built-in variables for first and last frame numbers

PostPosted: Tue Dec 24, 2019 12:59 am
by xunile
eniva100 wrote:Hello,

I am looking for the built-in variable for Fusion expressions that returns the number for the first frame in the composition and the variable that returns the last frame number.

My understanding is that the built-in variable time will go from the first frame number to the last frame number as the playhead moves.


Thanks,
Enrique


You can try MediaIn1.ClipTimeStart and MediaIn1.ClipTimeEnd. Of course, the MediaIn number would be set to your MediaIn. You can also try GlobalIn and GlobalOut.

Re: Built-in variables for first and last frame numbers

PostPosted: Tue Dec 24, 2019 7:31 am
by eniva100
It works.

I think the GlobalIn GlobalOut option is better since it will also work when you create a Fusion Composition on the Edit page by dragging from the Effects library and therefore there is no MediaIn node.