UsdShadeDisconnectCommand
- class omni.kit.property.material.scripts.commands.disconnect_command.UsdShadeDisconnectCommand(target: Input)
Bases:
Command
A command to disconnect a target input from its source in USD’s shading system.
This command handles the disconnection of a UsdShade Input from either an Output or another Input that it is connected to. It is capable of storing the source information for undo operations.
- Parameters
target (
UsdShade.Input
) – The input to be disconnected from its source.
Methods
__init__
(target)Initializes the command to disconnect a shading input.
do
()Executes the disconnection of a shading input.
undo
()Reverts the disconnection of a shading input.
- __init__(target: Input)
Initializes the command to disconnect a shading input.
- do()
Executes the disconnection of a shading input.
- undo()
Reverts the disconnection of a shading input.