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.


On Thu, Dec 15, 2016 at 2:43 AM, Mahmoodreza Aarabi <madoo...@gmail.com>
wrote:

> 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
> ​
>
> --
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/python_inside_maya/0840c555-da06-4c5e-8aaa-68dae3adf91a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CALKD2Wrkx82h6Aytp_bzNZLXS6MwGAcV6fWEq8bZh_-ncdREYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to