Announcement

Collapse
No announcement yet.

Vray 5 - New Frame Buffer Maxscript Access?

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

  • #16
    I was happy to find a bakeLayersToLUT function in the manager (was done via vfbControl #saveglobalccpreset before).

    How to enable/disable all Display Corrections (eyeball besides Display Correction in the UI)?
    How to enable/disable specific layers (e.g. Background)? I did not find a property for this in the layer manager.

    Daniel
    Daniel Schmidt - Developer of psd-manager

    Comment


    • #17
      Using the same code as in my previous post:

      Code:
      mgr.displayCorrectionLayer.profile = 0  --this isn't exactly what you asked, but it's equivalent in effect, in that it disables all display corrections
      I've inquired as to the display property itself, which seems indeed missing.
      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


      • #18
        mgr.displayCorrectionLayer.profile = 0 sets display corrections to None, but it doesn't turn off all color corrections and effects in the layer tree below it as the eyeball switch does in the UI.

        Daniel Schmidt - Developer of psd-manager

        Comment


        • #19
          ah, indeed.
          Well, the interface to show and hide will be coming in a hotfix soon.
          It only needed to be exposed, and was somehow left behind.

          Will poke you as it's in the nightlies, if you have access.
          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


          • #20
            Oh! Finally!!!!!!!

            Comment


            • #21
              dans we now have the layers' ".enabled" property in the nightlies from today (30651).

              Code:
              mgr.displayCorrectionLayer.enabled = false

              KramSurfer we also have new methods to store and read layersets to and from JSON strings, which you may find useful.

              Code:
              --storing
              myJSONString = (mgr.saveLayersToJSON()) --get the layout in a string
              
              --reading
              mgr.loadLayersFromJSON myJSONString --reads the layout from a JSON string
              Last edited by ^Lele^; 11-03-2021, 05:25 AM.
              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


              • #22
                ^Lele^ is there a way to check if the VFB has any image data loaded?

                I am trying to avoid the error "Image required while saving LUT preset!"
                Set V-Ray class properties en masse with the VMC script
                Follow me for script updates: @ollyspolys

                Comment


                • #23
                  Code:
                  vrayVFBGetNumChannels()
                  returns 0 if no image is present.
                  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


                  • #24
                    Originally posted by ^Lele^ View Post
                    Code:
                    vrayVFBGetNumChannels()
                    returns 0 if no image is present.
                    Perfect thank you!
                    Set V-Ray class properties en masse with the VMC script
                    Follow me for script updates: @ollyspolys

                    Comment


                    • #25
                      Originally posted by olly View Post
                      Perfect thank you!
                      yavor.rubenov to thank for this one!

                      He is so proactive he messaged me the answer before i knew there was a question (and i ain't joking!).
                      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


                      • #26
                        Well thank you yavor.rubenov - very much appreciated
                        Set V-Ray class properties en masse with the VMC script
                        Follow me for script updates: @ollyspolys

                        Comment

                        Working...
                        X