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

This works because your string is passed within a list to the argument. 

  skip=[myString] is not the same as skip=myString

so you were passing it skip=["x"] which of course works, but you needed to 
append another string to your list, instead of add to the string itself. which 
was giving you skip=["x,y"]


Hope that helps

-- 
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/61ae7a97-89ee-43e9-8931-989a7ff43cb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to