`I use following command to create Xform, and I wish to get the Xform prim:
result=omni.kit.commands.execute('CreatePrimWithDefaultXform', prim_type='Xform', attributes={})
but I checked in the console, result is a tuple type, not a prim type?
How can I get the prim created by the omni.usd commands?
Hi @liuyuanyuan.sh. Commands that don’t accept a prim path for where you would like to create a prim, will return the created prim path. CreatePrimWithDefaultXform accepts a prim path using the keyword argument prim_path so you know where it was created. Alternatively, you can have it select the created prim and then get the selected prim using omni.usd. You can learn more about the keyword arguments for any kit command using the Commands History window: Command History — extensions latest documentation