Announcement

Collapse
No announcement yet.

maxscript access to light/photon settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • maxscript access to light/photon settings

    i'd like to see the light settings in the rendering dialog, photon count etc., exposed to maxscript.

    i think it would be even better to include this settings in the light object, not in some dialog in the render settings. this would be more logical. there shoudn't really be dialogs in the render settings, in my opinion.
    Marc Lorenz
    ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
    www.marclorenz.com
    www.facebook.com/marclorenzvisualization

  • #2
    Those properties are actually stored as "user defined properties" for the corresponding nodes; you can edit them by hand or by maxscript yourself. The VRay Light and Object settings dialogs are simply a more convenient way to edit them.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      thanks vlado,

      sometimes it's hard to find things with maxscript if you don't know where to start looking.


      in case anyone is interested:

      getUserPropBuffer $VRayLight01
      --lists all photon related properties of a vray light:

      output:
      "VRay_Caustics_Generate = False
      VRay_Caustics_Multipier = 1,000000
      VRay_Caustics_Subdivs = 1500
      VRay_Diffuse_Generate = True
      VRay_Diffuse_Multipier = 1,000000
      VRay_Diffuse_Subdivs = 2000
      "
      getUserProp $VRayLight01 "VRay_Diffuse_Subdivs"
      --gets value

      setUserProp $VRayLight02 "VRay_Diffuse_Subdivs" 2000
      --stores value


      one thing to note: by default vray lights have none of these properties stored. you have to either assign them with setUserProp, or with the light settings dialog in the render panel.
      Marc Lorenz
      ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
      www.marclorenz.com
      www.facebook.com/marclorenzvisualization

      Comment

      Working...
      X