I tried the following:
Code:
animation = drone.getChild('Take 001')
animation.setAnimationLoopMode(1)
vizact.onkeydown(' ',animation.setAnimationState,viz.TOGGLE)
and also, for good measure:
Code:
animation = drone.getChild('Take 001')
animation.setAnimationLoopMode(1)
vizact.onkeydown(' ',drone.setAnimationState,viz.TOGGLE)
and unfortunately neither started the propellers spinning.
Don't know if this is relevant to the problem at hand, but just in case, here is an observation. The drone model has four propellers. I get no error messages, but I do get the following informational messages in the Interactive Window when I press the spacebar:
LinkVisitor links 3 for "Drone_propeller1"
LinkVisitor links 3 for "Drone_propeller2"
LinkVisitor links 3 for "Drone_propeller3"
LinkVisitor links 3 for "Drone_propeller4"
Thanks for your help
--Frank