Yep, just use this:
var property =
XSIFactory.CreateObject("CustomProperty");
InspectObj(property, "", "My Property", siLocked,
false);
The custom property will just be garbage collected
automatically when the window closes and nothing is holding a reference to it
from scripting.
Andy
From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM] On Behalf Of Graham D
Clark
Sent: 03 October 2006 20:25
To:
xsi(at)Softimage.COM
Subject: delete PPG on term for
PPGs
so is there finally a way to have a property deleted on close of window,
without the hack workarounds like a close button or hosting it in an RV or
without using modal?
the PPG term is "fired when a property is deleted" while an RV term is
"fired when the top level window is destroyed" so you can delete all the stuff
when a user clicks the x and is done with it.