Advertisement
nik684

Untitled

Sep 21st, 2020
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. macroScript VRayLight_Plane
  2. category:"VRay"
  3. buttonText:"V-Ray Plane Light"
  4. toolTip: "Create V-Ray Plane Light"
  5. (
  6. -- This check implementation is present in all maxscripts, to make them independent on other scirpts
  7. fn checkVRayRenderer = (
  8. local enabled=false
  9. if (renderers.production!=undefined) do (
  10. cid=renderers.production.classid
  11. enabled=((cid[1]==1941615238) and (cid[2]==2012806412) or (cid[1]==1770671000) and (cid[2]==1323107829))
  12. )
  13. enabled
  14. )
  15.  
  16. on isEnabled do (checkVRayRenderer())
  17. on isVisible do (checkVRayRenderer())
  18.  
  19. fn setType obj = (if (classof(obj)==VRayLight) do (obj.type = 0))
  20.  
  21. on execute do (StartObjectCreation VRayLight newNodeCallback: setType)
  22. )
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement