Re: How to automatically run a script when a parameter is changed?!?

Date : Tue, 31 Jul 2007 14:00:16 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: How to automatically run a script when a parameter is changed?!?
Although you can create this functionality on the fly in the logic section for custom properties created from within a script, it is not maintained when saving and reloading the scene. You need to create a self-installed custom property instead to make it a permanent effect:

SDK>Customizing with the SDK>Custom Properties>Property Callbacks

It will looks like this:

//DoLArm on changed
function aa_MoCap2IKTemplate_paramDoLArm_OnChanged(){
paramLArmName.ReadOnly = !paramDoLArm.Value;
PPG.PPGLayout.Item("paramLArmPick").SetAttribute("ButtonDisable", !paramDoLArm.Value);
PPG.Refresh();
}


Hope this helps.

   -André


Denis-Jose Francois wrote:
Bernard...

I've been trying to do the same thing (get something to happen when something else changes in a scene) but without much luck. What kind of property plug in do you mean? can you point to anywhere that gives more details?

In the Docs none of the listed events include 'onchanged'... which sounds like what I'm looking for....

cheers

DJF

--- 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.