PDA

View Full Version : Change handlers and custom attributes


bolbacool
03-15-2004, 08:41 PM
Hi,

I'm looking for help about the Change handlers (when <parameter> change do ...). I see that there is an optional handleat option to specify an object parameter, but I don't know how to use it (the documentation is quite lacking on that point ...).

I want to detect if a custom attribute is changed. In a first time I tried to script something like that :

on parameters $ changed do ...

It seems to work, but i want to know what parameter is changed to run some different processes in function of which custom attribute is changed. I would like to know if the handleat option could help me do achieve what i want, and if yes, how to make it working ...

thanks a lot

bolbacool

gloupi
03-15-2004, 10:04 PM
hi bolbacool,

I looked back at the when construct, i already used.
It s just a way to catch event, of any type, you have to check your custom attributes.

Other, is to use and store your variable inside the CA body.
As in a standard rollout you could add item events on your CA.

perhaps, i didn't wall understand your problem.

bolbacool
03-15-2004, 10:25 PM
the first part of your answer is exactly what i want, but i don't know how to check a specific custom attribute, and not only a global "parameters change" event of an object.

Do you know how to do that ?

thanks,

bolbacool

gloupi
03-15-2004, 10:46 PM
please be more specific,

Are you talking about, '$YourObjects.Attributes' like ,
if $foo.myValeur == MyCheckValeur then print "super"
?

bolbacool
03-15-2004, 11:03 PM
No,

Actually, I have some scripted custom attributes that control some other custom attributes in the same object, into a rollout. And i want to check if the value of the first CA's change in order to update the other CA's

hum, it's quite complicated to exlpain, soory if i'm not very clear

You can check that thread, where is explained what I'm doing ...

http://www.cgtalk.com/showthread.php?s=&postid=1195993#post1195993

CGTalk Moderation
01-17-2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.