Notifications
Clear all

[Closed] Can make the object to not be unfreezed?

I want to prevent object to be unfreezed. Can I do it?
Example:

  • create a Teaopt
  • freeze it
  • when user use “Unfreeze All” the Teapot stay freezed
2 Replies

maybe not so elegant but working…

global foo = $foo
fn pesistFreezeMe = (
	me = callbacks.notificationParam()
	if me == foo do me.isFrozen = on
)
callbacks.removeScripts id:#freezeMe
callbacks.addScript #nodeUnfreeze "pesistFreezeMe()" id:#freezeMe

Thank you very much.