Hey,
I’m trying to create some animation curve keys programmatically via python. With the code below I can create them, but the prims don’t actually move when I start rendering with my custom writer. I know the keys exist, because they work when I open the scene with these keys in Isaac Sim with ./isaac-sim.sh.
So I thought, there were extensions missing in the standalone python script, but even by activating the Animation Timeline, Curve Editor and Sequencer extensions, I still can’t see the animations. There is also the error “Sequence Schema extension must be set to Autoload on startup” with enabling the omni.kit.sequencer.core and omni.kit.sequencer.usd extensions.
I tried this code with Isaac Sim 2022.2.1 and 2022.2.0:
manager = omni.kit.app.get_app().get_extension_manager()
manager.set_extension_enabled_immediate("omni.anim.timeline", True)
manager.set_extension_enabled_immediate("omni.kit.sequencer.core", True)
manager.set_extension_enabled_immediate("omni.kit.sequencer.usd", True)
omni.kit.commands.execute("SetAnimCurveKeys",
paths=[f"/World/pallet_empty_knorr/pallet/layer_00/case_000.xformOp:translate"],
value=Gf.Vec3d(0, 0, 0),
time=Usd.TimeCode(0),
outTangentType="step")
omni.kit.commands.execute("SetAnimCurveKeys",
paths=[f"/World/pallet_empty_knorr/pallet/layer_00/case_000.xformOp:translate"],
value=Gf.Vec3d(0, 0, 10),
time=Usd.TimeCode(1),
inTangentType="step",
tangentBreakDown=True)
Do you have any ideas for how to enable the autoload or making the animations work?