how to use ToolContexts in maya?

29 views
Skip to first unread message

Mahmoodreza Aarabi

unread,
Dec 15, 2016, 2:43:51 AM12/15/16
to Python Programming for Autodesk Maya

Hello Friends

I have a problem here to call ToolContexts in maya.
for example there is a moveTool folder in C:\Program Files\Autodesk\Maya2016\devkit\plug-ins\moveTool, i build it for maya in windows mll and load its plugin to maya, but i don’t know how should i call it.

in its docs has beed said

//    This plug-in will register the following two commands in Maya:

//       moveToolCmd <x> <y> <z>

//       moveToolContext

moveToolCmd <x> <y> <z> works when we selected the object
but moveToolContext does not work, or at least i don’t know how should it work.

it should be an interactive tool i guess.

any suggestion?
thanks

Tim Fowler

unread,
Dec 16, 2016, 10:28:35 AM12/16/16
to python_in...@googlegroups.com
moveToolContext is a command that creates the tool itself.  You should be able to give it a name, and then call:  setToolTo <MyToolName>;  That will switch the current tool to your custom one.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0840c555-da06-4c5e-8aaa-68dae3adf91a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages