Expression not updating on time change

Expression not updating on time change

chaneyx
Advocate Advocate
518 Views
3 Replies
Message 1 of 4

Expression not updating on time change

chaneyx
Advocate
Advocate

I would expect my expression to update everytime there is a time change as per the docs "By default, an expression also executes whenever the current animation time or frame changes"

 

But this MEL expression only prints once : 

int $f = frame;

print $f;

 

Here is the output : 

expression -e -s "int $f = frame; \nprint $f;" -o "" -ae 1 -uc all expression1;
90// Result: expression1 //
currentTime 54 ;
currentTime 39 ;

 

Is this a bug? 

 

0 Likes
519 Views
3 Replies
Replies (3)
Message 2 of 4

alec.andersenLP8AU
Alumni
Alumni

Hi @chaneyx,

 

I've made the development team aware of this possible inconsistency in documentation. Would you be able to provide the documentation you are referring to?

 

Thank you! 

0 Likes
Message 3 of 4

alec.andersenLP8AU
Alumni
Alumni

Hi @chaneyx,

 

Just wanted to check in and see if you were still interested in this!

0 Likes
Message 4 of 4

chaneyx
Advocate
Advocate
Not really. I kind of got it to work and baking was never an option.


Thanks,
Chris
0 Likes