RE: delete PPG on term for PPGs

Date : Wed, 4 Oct 2006 08:28:19 +0100
To : <XSI(at)Softimage.COM>
From : "Andy Nicholas" <andy(at)andynicholas.com>
Subject : RE: delete PPG on term for PPGs
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.

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.