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

Date : Fri, 27 Jul 2007 10:51:45 -0400
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Re: How to automatically run a script when a parameter is changed?!?
I'm affraid the only way around this is to use a property plugin. In
there you can attach an OnChanged callback to your parameter.


Cheers
Bernard


On 7/27/07, David Auner <david(at)auner.net> wrote:
> Hi folks,
>
> I want to duplicate an object n times, n being set in the parent
> object's CustomPSet.
>
> I know how to script the creation of these duplicates, but how can I
> have the number update based on the value the Pset? I.e. when I first
> create these objects, the PSet parameter was at 5 so I have 5
> duplicates, now I change this to, say, 3.
>
> With my script I'd have to manually run the script, deleting all the
> old objects and create the new number. Any way I can link the
> parameter so it runs the script automatically when the value is changed?
>
> I hope I am making myself clear, if I knew what exactly I'm looking
> for I'd have more luck searching in the docs and the web. Any pointer
> would be greatly appreciated!
>
> Cheers, Dave
>
> David Auner
>
> Filmproduktion
>
> Assmayergasse 5-7/1/1
> A-1120 Wien
> Austria
>
> phone +43 664 11 27 481
> e-mail david(at)auner.net
> www http://www.auner.net
> uid nr./vat no. ATU57818455
>
>
> ---<<| "I am eye. I am a mechanical eye.      |>>---
> ---<<| I, a machine, am showing you a world,  |>>---
> ---<<| the likes of which only I can see."    |>>---
> ---<<| - Dziga Vertov                         |>>---
>
>
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
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.