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