SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Lounges / Maya Basics & Newbie Lounge / How to bind a key to 'Tool Settings -> Transform Constraint -> Surface'?

Maya Basics & Newbie Lounge Please post in this section ONLY if your question doesn't fit in anywhere else on the forum, or if you're not sure which section it's relevant to. We also have Free streaming trial available.

Join the conversation. Reply to post
 
Thread Tools
30-12-2015, 07:08 PM   #1
meywue
Registered User
 
Join Date: Dec 2015
Posts: 2
How to bind a key to 'Tool Settings -> Transform Constraint -> Surface'?
Hey guys,

I'm using Maya 2016 and frequently using the option I mentioned above to slide vertices across my meshes. Is it possible to bind this tool to a key (maybe via MEL script or something else)?
I can't find the command in the 'Hotkey Editor'

Thanky you in advance!
  Reply with quote
31-12-2015, 09:14 AM   #2
Gen
Super Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,518
If you turn on Echo all commands in the script editor you can grab the command names from the read out after performing the relevant tasks. Which in this case is the dR_slideSurface and dR_slideOff. The problem is that these commands seem to be intentionally buried and documentation is hard to find. They are in the Hotkey Editor under "Other Items" under the modeling toolkit section but since the commands are so buried and undocumented (and separate), getting a toggle effect would be difficult.

I whipped up something that allows you to cycle through the three modes, put it in your user scripts folder. In your hotkey editor, create a custom command and enter this line into the script area:
Code:
gen_cycleTransformConstraint;
Assign your hotkey to that as normal.

Happy New Year

Download
__________________
- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
  Reply with quote
31-12-2015, 03:53 PM   #3
meywue
Registered User
 
Join Date: Dec 2015
Posts: 2
Thank you very very much, Genny, it's perfect!

And Happy New Year as well!!
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move tool with free transform choo Maya Basics & Newbie Lounge 1 17-06-2016 01:36 AM
Copy and paste surface settings. djwaterman Maya Modeling 9 01-02-2012 09:11 PM
F9 key... Jo Wand Maya Basics & Newbie Lounge 9 24-04-2008 04:28 AM
Sculpt Surface tool won't sculpt Kerosene Maya Modeling 3 01-12-2005 04:32 PM
Please help with Goal_PP Joselu I.B. Dynamics & Special Effects 6 24-04-2003 12:06 AM