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
Same effect when using addAction instead. What point am I missing here, and is there a better (working) approach? BR Walter |
Does the following work for you?
Code:
import viz |
Hi Jeff,
that code works ok as it is. Also, when I adopt it to my script, it does the trick and moves the node by 1 meter. So thank you for the workaround. :) But
Therefore I'd like to repeat: what am I missing to understand how .moveTo works? :confused: When I use your script as a basis and try out .moveTo again Code:
import viz
Giving time=2 does not lower the speed but extends the distance, e.g. 61.55 for .easeInOut Using parameter speed=1 instead of time=1 in the code above yields same result, BUT using speed=.1 results in y=301.75 while speed=10 yields y=4.50 even more confused the more I try, Walter |
All times are GMT -7. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC