Hi,

I am writing an automated constraint string for one of the animator friend.

I am having an issue in the skip axis parameter of the point constraint 
command.

Try1:

myString = 'x'

cmds.pointConstraint( 'sph1', 'sph2', skip=[myString])   *WORKS*

Try 2:
myString = 'x'
myString += ","
myString += 'y'


cmds.pointConstraint( 'sph1', 'sph2', skip=[myString])   # Error: 
RuntimeError: file <maya console> line 1: Invalid argument for the skip 
flag. Specify x, y, or z. # 

Tried Different version of the input Like Putting them in single quotes or 
double quotes:

myString = '"x"'
myString += ","
myString += '"y'"

Can someone help?

Thanks in advance.

Tushar

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/87d81e90-25cc-4e7b-972a-9660cd6c3c50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to