![]() |
#1
|
|||
|
|||
understanding vizact.moveTo
Hello,
it seems I have problems understanding this moveTo. What I'd like to achieve is to have two actions that move a node one unit (meter) along it's Y axis up or down. That way I can use them on different nodes in the object, regardless of the original position of the node. So I created Code:
_ceilDist = 1 _ceilMode = viz.REL_LOCAL _actYplus = vizact.moveTo( [0,_ceilDist,0], time=4, mode=_ceilMode, interpolate=vizact.easeInOut) _actYmin = vizact.moveTo( [0,-_ceilDist,0], time=4, mode=_ceilMode, interpolate=vizact.easeInOut) def cmdOpenCeil(parName): car.getChild(parName).runAction(_actYplus) def cmdCloseCeil(parName): car.getChild(parName).runAction(_actYmin)
Same effect when using addAction instead. What point am I missing here, and is there a better (working) approach? BR Walter
__________________
21 is only half the truth. |
Tags |
action, moveto, positioning, subnode |
Thread Tools | |
Display Modes | Rate This Thread |
|
|