Jump to content
Sign in to follow this  
monomind

Vex: Total number of frames?

Recommended Posts

I can reach the current frame using @Frame but what's the global variable to reach the total frames, or the end frame? (sort of equivalent of $FEND)

Can't find the global variable for that in vex.

Share this post


Link to post
Share on other sites

Hi, I don't think there is a dedicated global VEX variable for that, but you can use $FEND directly in VEX, or create a parameter with that expression and read that using chi function.

Edited by animatrix
  • Thanks 1

Share this post


Link to post
Share on other sites

My current workaround is reading $FEND through a chf, how else can I directly use it?

Thanks!

Share this post


Link to post
Share on other sites
Posted (edited)
On 2/29/2020 at 2:11 PM, monomind said:

how else can I directly use it?

float t = @Frame / `$FEND`;
Edited by konstantin magnus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×