remove_properties_and_connections

omni.kit.property.material.scripts.widgets.remove_properties_and_connections(prim: Prim) Tuple[bool, List, Dict]

Remove properties and connections from a given USD Prim that are no longer valid.

This function will remove properties that are no longer valid due to changing the shader node type, as well as disconnect any connections that are no longer valid.

Parameters

prim (Usd.Prim) – The Prim from which to remove properties and connections.

Returns

A tuple containing a boolean indicating success or failure, a list of removed properties, and a dictionary of removed connections.

Return type

Tuple[bool, List, Dict]