CreateInstanceCommand

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

Bases: Command

Instance primitive undoable Command.

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, so it’s perfectly safe to press Ctrl-I multiple times.

Parameters

path_from (str) – Path to instance from.

Methods

__init__(path_from)

do()

undo()

__init__(path_from: str)