CreateInstanceCommand#

class omni.usd.commands.CreateInstanceCommand(path_from: str)#

Bases: Command

Instance a primitive.

It creates a new prim, adds the master object to references, and flags this prim as instanceable. It the prim is Xform, this command copies the transforms from the current frame. If the source prim is already instanceable, it tries to find master prim of this prim and uses it.

Methods

__init__(path_from)

Constructor.

do()

undo()

__init__(path_from: str)#

Constructor.

Parameters:

path_from (str) – Path to instance from.