PDA

View Full Version : Get the parameter that has changed in Change Handlers


Reality3D
01-14-2008, 12:18 AM
Hello:

Is there a way to know what's the parameter that has changed in a change handler construct?
For example if I do


when #($Spot01.baseobject,$Omni01.baseobject) changes owner do
(
--I want to get here the changed parameter information
--and act based on that
)

It would be something like callbacks.notificationParam()
Thank you so much :)

PEN
01-14-2008, 11:54 AM
I don't believe that you can do this. Then again I have never tried.

RustyKnight
01-14-2008, 08:29 PM
Hello:

Is there a way to know what's the parameter that has changed in a change handler construct?
For example if I do


when #($Spot01.baseobject,$Omni01.baseobject) changes owner do
(
--I want to get here the changed parameter information
--and act based on that
)

It would be something like callbacks.notificationParam()
Thank you so much :)Also, I don't think it can be done, the way you want it...

One way I can think of doing is to store the properties of the objects you are watching in a seperate container/array and when the change event occurs, do a check on the values...About the only thing I can think off...

Shane

U.S.S. Speed
01-15-2008, 03:36 AM
That doesn't work... And that annoyed me deeply as Topo, Geo and Prop all changed many time as I just translate a mesh. No way to know what the user actually did.

So, store variable of what you want to watch...

Reality3D
01-15-2008, 08:46 PM
I was afraid of that. Well.. nobody said life was easy haha
Thanks a lot:)

CGTalk Moderation
01-15-2008, 08:46 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.