its just a sintax error

import maya.mel as mm
command = "searchReplaceNames \"joint\" \"finger\" \"hierarchy\" "
mm.eval(command)




On Thu, Jan 7, 2010 at 7:25 PM, rudi <[email protected]> wrote:

> Hi,
> So the searchReplaceNames mel command is not available in python
> right?
> I tryed to run from python like so:
> I have 3 joints in my scece named joint1,joint2 and joint 3.The mel
> command to replace "joint" to "fingers" is:
>
> searchReplaceNames "joint" "finger" "selected";
>
> So in python I did:
>
> import maya.mel as mm
> mm.eval("searchReplaceNames "joint" "finger" ")
>
> But the mel is not well evaluated,beacuse there is the quote sign in
> both names joint and finger...I know I should be skipping signs in
> order to evaluate it as a string,but I am not succeeding to do it.
>
> Thx
>
> --
> http://groups.google.com/group/python_inside_maya
>
-- 
http://groups.google.com/group/python_inside_maya

Reply via email to