Creating and managing rivets with cmds.Rivet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am trying to create some rivets with python using cmds.Rivet. Since i have to constraint them to some precise objects in a for loop, i need either to create them with the proper names or to rename them after the creation. I am seeing that cmds.Rivet() creates both the uvPin and the locator nodes but the function does not return the list with the two object names, therefore I can't access these two objects if not with some hard coded/not so clean tricks.
I tried also to add a name kwarg to the function call but it looks like it accepts it but it does not create the locators with the proper names (maybe there is something like *kwargs in the function definition? Because i tested it and it is accepting any argument I am writing without raising errors).
I also tried
import maya.internal.nodes.uvpin.cmd_create as ptguv
ptguv.Command().execute(setupMode=0, outputConnect=3, allowCreateWithoutInputs=False)
Which should be the code run under the hood, but still the execute method is not returning anything. Am i missing something?
Thanks!