Manipulator Change on Select

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
Old 04 April 2008   #1
Manipulator Change on Select

Hey everyone. A common function I had on my 3dsmax rigs was when you select a specific control (say an FK arm curve), your manipulator would default to rotate. If you selected the body curve, it would default to translate. And so on.

Theres a setting in the transform called "Show Manip Default" and it seems to give you the same options that im looking for, but for whatever reason it just doesnt seem to work when you select the control.

Any ideas?

Much apprecaited.
Senior Animator / Framestore - London - @KielFiggins - Animation Store
Old 04 April 2008   #2
Yo bra,

In the attribute editor, under the Display rollout you set the "Show Manip Default" drop down list to Translate or Rotate for each contorl. Then to select objects hit "t" (Show Manipulators) instead of the move or rotate tool. Now when you select objects you'll get the manipulator you set for each control.

Old 04 April 2008   #3
Haha, the Mighty Stev steps on up. Definatly works that way man, just not the solution for my particular work flow. I dont use the default manipulator (only use the w,e,r keys) so it seems if your in that tool, the override doesnt work (which is a bummer , i was hoping it would).

Thanks though man, much appreciated.
Senior Animator / Framestore - London - @KielFiggins - Animation Store
Old 04 April 2008   #4
You could use zooTriggered ( to trigger a change of manipulator on object selection. There is a very slight delay (when compared to Stev's suggestion) but you dont have to worry about using the "t" mode all the time.
-- David
Old 04 April 2008   #5
Hey Keil, hope shilo is treating you well.
Zoo works great, if you don't want to intall zoo though, you can use code from my rigging book that I go working thanks to Steve Theadore, rigging cook book..

it reads a custom attribute i create on the object ( I can set it to gimble , or local, or world etc.. I just create an entry per attribute ) and then a script job can be turned on or off to do this.

 global proc SL_toolSwitch()
 scriptJob -e "SelectionChanged" "whichTool";
 global proc whichTool()
 string $gTools = `currentCtx`;
 string $manipModeSwitch;
 string $obj[] = `ls -sl`;
 	if (size($obj) != 0)
 		if (`attributeExists "defaultTool" $obj[0]`) 
 		string $tool = `getAttr ($obj[0] + ".defaultTool")`;
 		switch ($tool)
 			case "0":
 				//worldSpace move
 				$gTools = "moveSuperContext";
 				 $manipModeSwitch = `manipMoveContext -edit -mode 2 Move`;
 			case "1":
 				//object move
 				$gTools = "moveSuperContext";
 				 $manipModeSwitch = `manipMoveContext -edit -mode 1 Move`;
 			case "2":
 				$gTools = "RotateSuperContext";
 			case "3":
 				$gTools = "scaleSuperContext";
 setToolTo $gTools;

add an attribute to your ctrl object..

enum- defaultTool

Then you can just label it to match the tool order ( does not matter though),
just the order.., 0,1,2,3, etc.. and if you want more options you can add it to the case statement.

p.s djx, nice blog

Old 04 April 2008   #6
Brad, I hope you dont mind, but I took your code and built a little wrapper script to make it easy to use for non-coders. It's here for anyone that's interested.

Brad did all the real coding. I just added a few extra lines here and there (and even some of those I copied from Hamish McKenzie).
Old 04 April 2008   #7
oh nice work, don't mind at all happy to contribute. the more we can all share the better, the TD world is really so small and we all face the same set of issues.
Old 04 April 2008   #8
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 11:33 PM.

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