#How to Set prim Attribute Values from an Extension When Locked in Isaac Sim 5.1.0?

2 messages · Page 1 of 1 (latest)

edgy crypt
#

I didn't know where to post, so I'm posting here. I'm developing an extension. The ability to retrieve the value set on the Extension UI and save it to the prim Attribute Ability to get values from prim attributes and load them into the Extension's UI We are mainly developing the above two functions. I want to lock the saved value for the prim Attribute because I don't want it to be changed from the Property. However, if you leave the lock on, you will not be able to set the value obtained from the Extension. Therefore, when using the save function, we implement a process of unlocking it once, then setting it and locking it again. Unable to perform action for (/World/Box.Output) on locked specifiers. I got a message like the one above, the lock was not unlocked, and the value was not updated. Does anyone know how to deal with this? I'm using omni.kit.usd.layers for locking. The version of isaacsim is 5.1.0.

uncut oyster
#

One method to prevent changes from GUI properties is to use
omni:kit:property:usd:readonly. Changes via the extension API remain enabled. For example, to apply the readonly attribute to a cube generated upon loading, do as shown in the attachment. It appears omni.kit.usd.layers is used to lock changes from the GUI and the API.