Re: Programmatically press button ('onClicked') or call 'OnChanged' event

Date : Sat, 03 Jun 2006 19:31:23 +0930
To : XSI(at)Softimage.COM
From : benp <benp(at)rsp.com.au>
Subject : Re: Programmatically press button ('onClicked') or call 'OnChanged' event
For buttons, I tend to have (most of, but not exclusively) them calling custom commands, usually with a little bit of handling.
I find that my buttons usually do something important enough to warrant a command being written to do the actual guts of their job.


Maybe you'd find it useful to do the same for your _OnChanged events?

benpee

Andy Nicholas wrote:

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.

---


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


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.