Have a look at the polyListComponentConversion command.
It’s great that you post example code.
Example code make it crystal clear what it is you’re looking for. But what would make it even better, is if your example code would run.
I was about to type up an example for you, but it’s difficult when your example code doesn’t run. It would make helping you a lot easier if your code would work; that means I can paste it in and be exactly where you are. From there, helping you means filling in the blanks. Those are my favourite questions. Good for you, good for me. Win-win.
To work, your code would need (1) an import statement, (2) all nodes you referenced (e.g. finger
) and (3) somehow illustrate the problem. Most of the time, this means the example would get longer; but it doesn’t have to be. The finger
variable could be perhaps just a polyCube
of a certain length. and your curves could be simple two-point curve
nodes. Whatever helps illustrate the problem, so that you can then apply it to your real code.
--
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/5835457c-256f-4130-8037-d1e586c69fa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.