Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create Render Layers
- from pymel.core import *
- def createRl():
- beauty = beautyCb.getValue()
- effCb = beautyCb.getValue()
- mat1Cb = beautyCb.getValue()
- mat2Cb = beautyCb.getValue()
- addObjsCb = beautyCb.getValue()
- print beauty
- name = "beauty"
- renderLayer = ls(name)
- if not renderLayer:
- renderLayer = createRenderLayer(name=name,empty=1)
- setAttr(renderLayer.precompTemplate,type="string")
- return renderLayer
- else:
- print name, " already exsists"
- from pymel.core import *
- win = window(title= "Gui", s=0)
- mainLayout = rowColumnLayout(nc=1)
- beautyCb = checkBox(l = " Beauty ")
- effCb = checkBox(l = " Effects ")
- mat1Cb = checkBox(l = " Matte1 ")
- mat2Cb = checkBox(l = " Matte2 ")
- addObjsCb = checkBox(l = " Add Objects ")
- startBtn = button(l="create renderLayers", command=Callback(createRl))
- win.show()
Advertisement
Add Comment
Please, Sign In to add comment