Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # view port 2.o
- from pymel.core import *
- #import maya.core as mc
- currentPanel = getPanel(withFocus=1)
- #create Sun and set attr
- rendering.directionalLight(n='Sun')
- move('Sun',-2,0,1.5, ws=1, r=1)
- rotate('Sun', -60,-40,0, ws=1)
- setAttr("SunShape.useDepthMapShadows", 1)
- setAttr ("SunShape.dmapResolution", 1024)
- setAttr ("SunShape.dmapFilterSize", 15)
- # ambient ligth
- ambientLight(n='ambientLight_Fill')
- setAttr( "ambientLight_FillShape.intensity", 0.3)
- move('ambientLight_Fill',-2,0,1.5, ws=1, r=1)
- #refresh(cv=1)
- #updateModelPanelBar(' modelPanel4')
- setAttr("hardwareRenderingGlobals.ssaoEnable", 1)
- setAttr("hardwareRenderingGlobals.ssaoAmount", 3)
- setAttr ("hardwareRenderingGlobals.multiSampleEnable", 1)
- runtime.ActivateViewport20()
- runtime.DisplayLight('Sun','ambientLight_Fill')
- modelEditor('modelPanel4', e= 1, shadows = 1)# might need to change modelPane14
- print 'Done'
Advertisement
Add Comment
Please, Sign In to add comment