Notifications
Clear all
[Closed] Can make the object to not be unfreezed?
Oct 02, 2011 9:42 pm
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
Oct 02, 2011 9:42 pm
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