Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can now duplicate the selected camera, but I cannot rename the constraint it contains with an _UE extension.
import maya.cmds as cmds
# Select the camera
camera = cmds.ls(selection=True)[0]
# Creates a copy of the original camera and gives it a name with the ending "_UE".
camera_copy = cmds.duplicate(camera, name=camera+"_UE")[0]
I hope you can give me some help in this matter, it has not been easy for me so far, thank you very much.
Solved! Go to Solution.