clearlistener() resetmaxfile #noprompt mybox = box () select mybox mybox.pos.controller = position_list () -- I give a selection a position_list () controller mybox.pos.controller.Available.controller = Position_XYZ () -- Then another arbitrary controller... say another position xyz mybox.pos.controller.weight = 50.0 -- i now have the option to edit weight  or  x = mybox.pos.controller.weight print x --when transform mybox changes do (print "there was a change in transform") -- <-- working fine but when x mybox changes do (print "there was a change in controller's weight" ) -- < not working
this just a simple create box script where I am doing testing with the “When” construct.
So, I commented out the when transform, but i put it there to show that the construct is working.
I was following the…
when <attribute> <objects> change[s] do
… syntax as taught in the help, but I keep getting a syntax error when I simply change out transform for a different attribute… in this case, the weight attribute under the transform controller.
why this is so?
is (obj’s.position.transform.controller.weight) not an attribute in this context?
the syntax error is telling me it expects a while clause… but, I know that’s not what i need.