You could try getting the PPG's logic property, run it through eval() and
then directly call the event you want to trigger (making sure you set the
PPG global variable for the event to pick up).
Alternatively, you could put the PPG logic in an external file, use the
FileSystemObject to load it as a string, then do the eval(), etc.
Or even, put each PPG event's code into a command with the PPG as the
argument, then you can call it from wherever.
Andy
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of
Till Eisele
Sent: 02 June 2006 19:25
To: XSI(at)Softimage.COM
Subject: Programmatically press button ('onClicked') or call 'OnChanged'
event
Hi all,
Does someone know if there is a simple way to call the <button>_OnClicked()
event or <Parameter>_OnChanged() event of a PPG programmatically ?
BTW, I realized recently that changing a PPG parameter by scripting does not
fire an event, if the PPG is not displayed ...
Cheers.
---