View Single Post
# 1 06-02-2020 , 11:11 AM
Registered User
Join Date: Feb 2020
Posts: 1

Simple Expression not working!

Hi, can anyone tell me why this expression is not working in Maya 2017 or Maya 2020 when it does work in Maya 2015!?



float $newPosn ;

if (frame == 1){

$newPosn = 0.0;

}

pCube1.translateY = $newPosn;

$newPosn = $newPosn + 1.0;



It is driving me mad as I need to do something more complicated than this, but using the same principle of incrementing by a value each frame!



Thanks in advance!


Last edited by azurecgi; 06-02-2020 at 11:22 AM. Reason: typo