Updating data in UI -> HOW TO

Please someone tell me how to update data in UI objects.

For example i use floatScroll to control rotation of a object, but when i rotate object thru mouse, this not affect my script control.

Thanks !

Well, there are the various attrFloatSliderGrp 's and their related cousin commands that connect directly to an attribute. Those will update as you change things. Don't have the docs in front of me so I don't know if there's an attrFloatScroll.
Some controls have a changeCommand that might be useful.

In general this is something I've been wondering about myself as I've had to resort to creating a "Refresh" button that calls my main procedures in order to update my UIs

Hope this helps

-James

Thanks !

The problem is:

I have floatSliderGrp to control roatateZ of nurbsSphere1. When i rotate the sphere with mouse, this not affect dynamicly the floatSliderGrp. I use sample expression applied to nurbsSphere1 and put the floatSliderGrp in edit mode ->

$bla = nurbsSphere1.rotateZ;
floatSliderGrp -e -v $bla blabla;

But this is not useful in all situations.

Do you know a sample method (without using the expressions).

Thanks !

Hi,
If you use an attrFieldSliderGrp the slider will update accordingly.

Have fun.