Break connections in Maya Python?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am Keyframing animations using a python generated User Interface. I would like to add a function to break connections from a selected item, but I have been unable to manage this task.
I would appreciate any input. I have been trying to either use listConnections to inform disconnectAttr, but the names of the attributes don't seem to match. (listed connections = objectName_translateX, objectName_translateY, objectName_translateZ)
If I break connections manually, it shows the attributes as objectName.tx, objectName.ty, objectName.tz. I tried storing these names and passing them into the disconnectAttr command, but it didn't recognize those names either.
I also tried the names that are given when you manipulate the translateX, Y, or Z. This name shows as objectName.translateX, Y, or Z.
Thank you in advance for the help. It doesn't seem to be a hard problem since I already have the name and Keyframe information in the script. I just can't figure out what information is required to break the connection.