Hi
I am trying to set up an interactive turntable which can be started, paused and continued by touchsensors
and runs as a loop.
I animated a 360 degree turntable movement and
tried it with:
playCAnimation
pauseCAnimation (true)
pauseCAnimation (false)
in the Variant Sets/script section, to generate a touchsensor out of it.
Whenever i want to continue the turntable movement (pauseCAnimation (false))
it jumps back to the start of the turntable animation and starts from there again
but is not continuing from where i stopped the animation.
can someone help me?
Thanks,
Andreas
Hi,
did you put all the three commands into one variant set? If so, it will always execute all of them which simply means playing the animation from its beginning, pause, resume. You need to create three different touch sensors with different variant sets. If you want to have a toggle touch sensor, you will have to add some more scripting (remember the last state and so on).
/Marcus
Hi Marcus
Thanks for your reply
I have three different Variant sets with the animation and the script line for start, pause and continue + three touchsensors.
Start and pause working fine. Its just,
after i press pause and want to continue the animation, it jumps back to the beginning of the animation and restarts from there.
Is ther a way to continue the animation from where it stoped at pushing pause ?
Thank you,
Andreas
Ahhh, i found the problem!
i pulled the animation from the clipeditor in the animation Tab in Variant sets..that caused somehow trouble.
Without the animation in the variantsets it works:)
Thanks a lot!
Hi,
is there an example for a toggle touchsensor with python? for example to realize play pause with the same touchsensor
Hi!
I'm also interested to find out the Python script to play/pause/resume with the same touch sensor (or maybe just pause/resume with the same touch sensor)
This seems very interesting to me, especially for VR.
Can't find what you're looking for? Ask the community or share your knowledge.