So sometimes you want to add some notes to your objects in maya, the quick python script below will add a string attribute to the node you input from maya import cmds def add_notes(node = None, default_text = "Input note here"): if not node: sel = cmds.ls(sl=1) if sel: node = sel[0] else: cmds.warning("Please select […]
Read More
Hi there, So this is a handy little script if you want to pass a python list into a mel command in your code, say you have a list of objects that you now wat to pass in eg: [u'pCube1', u'pCube2', u'pCube3', u'pCube4', u'pCube5', u'pCube6', u'pCube7', u'pCube8', u'pCube9'] , you’re going to need to convert […]
Read More
So I ended up with a few issues when attempting to set the keyframe on an object using the layout specified in the python command, I was trying to do something like: cmds.setKeyframe("pCube1", value=True, attribute="visibility") However as I was using instancing, this would also keyframe the visibility on the pCubeShape1 which I didn’t want, even […]
Read More