UpdateTagCommand#
- class omni.kit.property.tagging.UpdateTagCommand(asset_path: str, old_tag: str, new_tag)#
Bases:
Command
Update a tag for an asset Command. Fails if we are not connected to the tagging server.
- Parameters:
asset_path (str) – Path to the asset. Should start with omniverse: or it will just return
old_tag (str) – packed string tag, such as appearance.Car, or .appearance.generated.Truck=99
new_tag (str) – packed string tag, such as appearance.Car, or .appearance.generated.Truck=99
Methods
__init__
(asset_path, old_tag, new_tag)Initializes the UpdateTagCommand command.
do
()Executes the update tag command by updating the tag using Omni UI tagging service.
undo
()Reverts the update tag command by restoring the original tag using Omni UI tagging service.
- __init__(asset_path: str, old_tag: str, new_tag)#
Initializes the UpdateTagCommand command. Stores the asset path, old tag, and new tag for later use.
- do()#
Executes the update tag command by updating the tag using Omni UI tagging service.
- undo()#
Reverts the update tag command by restoring the original tag using Omni UI tagging service.