how to control more atributes with one control?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  09 September 2006
how to control more atributes with one control?

how to control more atributes with one control?

For example one float slider to control the translate t and x values of a sphere?
  09 September 2006
Maybe you could do it with an expression?

pSphere1.tx = floatSlider.value (or something similar?) = floatSlider.value

Don't remember if you can use the connection editor with UI elements.

Or you could try the connectAttr command.
connectAttr "floatSlider.value" "pSphere.tx";

I can't remember the syntax here and I have no time to check it out. ( just waiting for a playblast ), but look up the connectAttr command and other Attr commands.
Martin Andersson
  09 September 2006
Or you could use a dragAttrContext and attach to the attributes you want to edit. Here is one connected to trans X and Y of a sphere.

Quote: dragAttrContext myDragAttrContext;
dragAttrContext -edit -connectTo pSphere1.translateX -connectTo pSphere1.translateY myDragAttrContext;
setToolTo myDragAttrContext;
  09 September 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:09 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.