Is there a way to add animations to rigged 3d models in omniverse replicator via python?
Hi @sharanya.pathakota have you tried using omni.replicator.core.modify.animation
?
Let me know if this works for you.
I have a usd file that has the skeleton and the animation embedded into it already. However, when I try to use the command you gave above, I am unable to find the correct prim paths. For reference, I am running this headless. Here’s the code I am trying to run:
with rep.new_layer():
bird_anim = rep.create.from_usd(config['bird_anim'])
bird_path = rep.get.prim_at_path(config['bird_anim'])
bird_skeleton = rep.get.skeleton(bird_path)
new_anim = Sdf.Path() # Not sure what to put here
with rep.trigger.on_frame():
with bird_skeleton:
rep.modify.pose(
position=rep.distribution.sequence(circle_positions),
scale=0.4
)
rep.modify.animation([new_anim])