Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VRED/Python Script for interaktive Turntable

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
1218 Views, 5 Replies

VRED/Python Script for interaktive Turntable

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

5 REPLIES 5
Message 2 of 6
marcus_fritzen
in reply to: Anonymous

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



Marcus Fritzen
Principal Engineer
Message 3 of 6
Anonymous
in reply to: marcus_fritzen

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

Message 4 of 6
Anonymous
in reply to: Anonymous

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!

Message 5 of 6

Hi,
is there an example for a toggle touchsensor with python? for example to realize play pause with the same touchsensor

Message 6 of 6
Anonymous
in reply to: marcus_fritzen

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.

Post to forums  

Autodesk Design & Make Report