Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macroScript VRayLight_Plane
- category:"VRay"
- buttonText:"V-Ray Plane Light"
- toolTip: "Create V-Ray Plane Light"
- (
- -- This check implementation is present in all maxscripts, to make them independent on other scirpts
- fn checkVRayRenderer = (
- local enabled=false
- if (renderers.production!=undefined) do (
- cid=renderers.production.classid
- enabled=((cid[1]==1941615238) and (cid[2]==2012806412) or (cid[1]==1770671000) and (cid[2]==1323107829))
- )
- enabled
- )
- on isEnabled do (checkVRayRenderer())
- on isVisible do (checkVRayRenderer())
- fn setType obj = (if (classof(obj)==VRayLight) do (obj.type = 0))
- on execute do (StartObjectCreation VRayLight newNodeCallback: setType)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement