Pymel / Python Coding

qt designer part 2 – signals and slots

qt designer set up gui to be imported into maya new > file > form > Main Window Layouts > Vertical Layout into the vertical layout drag two instances of  ‘Push Button’ from Buttons in Widget Box. Rename to something that makes sense  – “CreateSphere”, “ResizeSphere” add dynamic property to “CreateSphere” and to “ResizeSphere” first…

Add Mask AOVS – 3delight

# select all geo that you want to have a mask and run the script – this will create a 3delight mask aov for each piece. import pymel.core as pm selection = pm.ls(sl = True) for maskobject in selection: pm.createNode(‘3DelightMaskSet’,n=’Mask_’ + maskobject) cmds.sets( str(maskobject), add=’Mask_’ + maskobject )