Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why I used the “frame” in the expression script, always show error?

0 REPLIES 0
Reply
Message 1 of 1
J.C.Wang
88 Views, 0 Replies

Why I used the “frame” in the expression script, always show error?

I want to use the “frame” in my expression script. Attached 2 JPG files is my script editor picture.

The fp2.pdf file show I use the script   print (" frame= "+frame);

The fp1.pdf file show I use the script    if(frame==-252) {…}

It always show error : Invalid use of Maya object "frame" !

What is wrong with my script statement frame?

How I correct this errors? Help me please!

 

J.C Wang

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report