Event Support In Mel?

Hi everyone,

Is there any kind of "event" support in MEL? I will explain my problem. I need to translate an object in the scene and I want to do it with a slider. The object will translate while the user uses the slider. I cannot use an attrFieldSliderGrp because the value of the slider is not directly the value of the translation.

Imagine that I have a slider with min=0 and max=10. But the object is initially positioned at x=30. Then when I pick the slider the object immediately moves to x=0 an then responds to the slider value.

So, how can I map 0 to 30 and 10 to 40, for example, without modifying the min and max values? Is there any kind of event generated by the slider control when the user picks it? Something like "onChange" or "onMove" or "onPick".

Thanks a lot.

expressions attached to a controlling variable..... then you can still use a attrFieldSliderGrp

Mmm... Actually, that solves my problem Thanks a lot!!

But I'm still interested in the event support. Is there any kind of event support in MEL?

Yes its jut that in this case you dont want to use it, because general event mechanism is disabled for the DG update time. So if you want dg updaate you will need connections.

Mayas designed to work on the DG. Here offcourse you could easily use change flags of the sliders but again you dont realy want that, sicne yoru aim is to target the DG anyway.