Announcement

Collapse
No announcement yet.

VRayLight maxscript access

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

  • VRayLight maxscript access

    Hi!

    I have to get the .intensityType value for vray lights via maxscript. But how can I do this?
    the macrorecorder is showing me this:
    Code:
    $.normalizeColor = 4
    $.multiplier = 0.069907
    undefined.intensityType = 0
    undefined.intensity = 11.43
    and
    Code:
    show $
    is not listing something I can use
    www.hofer-krol.de
    Visualization | Animation | Compositing

  • #2
    There is no such property on v-ray lights, that i can see.
    What exactly are you trying to achieve?
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      I want to export existing lighting setups to blender and keep the intensity values.
      www.hofer-krol.de
      Visualization | Animation | Compositing

      Comment


      • #4
        .multiplier is what you're looking for, then.
        Lele
        Trouble Stirrer in RnD @ Chaos
        ----------------------
        emanuele.lecchi@chaos.com

        Disclaimer:
        The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

        Comment


        • #5
          All the lights are set to "Default" units. For Blender I apparently need W/m^2/sr. Thats why I want to e.g. switch to that unit and then read the .multiplier
          www.hofer-krol.de
          Visualization | Animation | Compositing

          Comment


          • #6
            Originally posted by henning View Post
            switch to that unit and then read the .multiplier
            Therein lies your code

            with the light selected:
            Code:
            $.normalizeColor = 4
            myReadLightValue = $.multiplier
            Lele
            Trouble Stirrer in RnD @ Chaos
            ----------------------
            emanuele.lecchi@chaos.com

            Disclaimer:
            The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

            Comment


            • #7
              thank you!
              www.hofer-krol.de
              Visualization | Animation | Compositing

              Comment

              Working...
              X