Play and pause of animation that is done in Blender and imported to Nvidia

Hello,

I am struggling a bit for the animation which is done in blender and imported into nvidia omniverse. I want to know how can we play and pause the BLENDER model animations with click of a button that is created in action graph.

I tried the following approaches for this:

  1. Tried to stop the animation using action graph where I created a button and by using ‘on widget clicked’ and connected it to the ‘Timeline(stop)’ input but this didn’t work for me. I even tried it with the ‘stage’ event to stop the animation while playing but even this didn’t work.

  2. Secondly we didn’t have any animation data to access and take control of the animation(play and pause it). Wanted to know how can we access the animation of the objects if the animation is done in blender not in omniverse.

  3. Tried converting the prims having animation to “USD TimeSamples to curves” i connected ‘on_tick’ as well as ‘On_Playback_Tick’ to the timeline node after converting but still it doesn’t work. Seems like it is not referring to the timeline.

I just want to play and pause a animation of an object that is done in blender.
I am pretty new to Nvidia Omniverse, thus I need help with this.
Looking forward to your suggestions.

zipped the images images.zip (469.6 KB)

@vivek.chaini can you please share the USD file to take a look on what’s the real problem you are facing?

Here is the USD
Collected_AnimationTestGraph.zip (224.5 KB)

If you do know how to program a customized node, you may play around with the omni.timeline API in your node and then stop/play the time. If you don’t. We may address this type of issue in the next release. But in this release. I offer you some tricks to do so.


Step 1

Step 2

2 Likes


Step 3

1 Like

Thanks @jiayuan I will try this out. Great explaination.