Announcement

Collapse
No announcement yet.

updated scripting methods

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

  • updated scripting methods

    Ok, so I'm sure this is low on the priority list for the dev team. But it would be really amazing if the following script methods could be fixed so they work (they're already visible, they just don't seem to function):

    SetIrradianceMapDetailEnhancementOn (radius and subdivs works, but not very useful if you can't turn it on and off)
    SetIrradianceMapMode
    SetIrradianceMapSaveFile
    SetIrradianceMapFromFile

    SetPhysicalCameraExposureOn
    SetPhysicalCameraFNumber
    SetPhysicalCameraISO
    SetPhysicalCameraLensShift
    SetPhysicalCameraOn
    SetPhysicalCameraShutterSpeed
    SetPhysicalCameraType
    SetPhysicalCameraVignettingOn
    SetPhysicalCameraWhiteBalance


    And it would be great if methods could be made accessible for:
    - getting the current settings for the Image sampler
    - toggling Linear Workflow/Correct LDR Textures/Correct RGB Colors in color mapping
    - setting the gamma correction/input gamma variables in color mapping
    - toggling the "override viewport" option in the output flyout

    Big job, i know. If any of these could be scripted it would really help though.

    Thanks,

    Emil
    Last edited by fooprobe; 04-04-2013, 08:58 AM.
    emil mertzel
    vray4rhinoWiki

    Lookinglass Architecture and Design

  • #2
    any answer yet?

    PLZ chaosgroup guyz!!!

    Comment


    • #3
      Originally posted by fooprobe View Post
      SetIrradianceMapDetailEnhancementOn (radius and subdivs works, but not very useful if you can't turn it on and off)
      I was able to immediately see the mistake in the irradiance map enhancement "on" parameter. I fixed that.

      The others, the physical camera and other irradiance map stuff, I do not see anything obviously incorrect with. I'll have to write some test scripts to see what I'm missing. Generally, these problems are because of typos in parameter names we try to manipulate, but I'm not seeing any typos in those functions.

      - getting the current settings for the Image sampler
      - toggling Linear Workflow/Correct LDR Textures/Correct RGB Colors in color mapping
      - setting the gamma correction/input gamma variables in color mapping
      - toggling the "override viewport" option in the output flyout
      None of that should be difficult to accomplish, I'll add it to our list
      Best regards,
      Joe Bacigalupa
      Developer

      Chaos Group

      Comment


      • #4
        I've attached my script test, I'm using silly values for some of them just to make them stand out more obviously. I was able to get them working on my end, so the next release should be good to go.

        I'll continue working on the other requests you mentioned
        Attached Files
        Last edited by joe_b; 17-04-2013, 05:29 AM.
        Best regards,
        Joe Bacigalupa
        Developer

        Chaos Group

        Comment


        • #5
          Thank you! That's amazing! Ill try this as soon as i can. So helpful, thanks a lot!
          emil mertzel
          vray4rhinoWiki

          Lookinglass Architecture and Design

          Comment


          • #6
            I read it too fast this morning, guess i can't test it until the next release =) will it be on the nightly builds or just the next official release? thanks so much for working on this.
            emil mertzel
            vray4rhinoWiki

            Lookinglass Architecture and Design

            Comment


            • #7
              Joe already fixed this, and it is available on the nightlies build. Of course it will be in the next release too.

              Comment


              • #8
                Hi Joe - I've been trying to write a script to export all materials (over in this thread:
                http://www.chaosgroup.com/forums/vbu...835#post579835

                and I'm having trouble with GetSceneMaterialNames ... I believe it is returning an array of the material names but i'm unable to access any of the elements in the array. any assistance would be greatly appreciated... so for instance, the following works fine until the last line:

                ------------

                Option Explicit


                Dim VRay
                Set VRay = Rhino.GetPluginObject("V-Ray for Rhino")

                Dim MatNames
                Dim Count

                VRay.GetSceneMaterialNames MatNames

                Count = Ubound(MatNames)
                Rhino.Print Count


                Rhino.Print MatNames(0)
                ------------

                I'm an edu user so i can't access the nightlies, please let me know if this is already fixed or if it's something in my code.

                thanks!!

                -emil
                emil mertzel
                vray4rhinoWiki

                Lookinglass Architecture and Design

                Comment


                • #9
                  Joe - just wanted to thank you for the fixes in the nightlies - i've got my scripts up and running and they're really helpful!

                  Still hoping for:
                  - the above issue with GetMaterialNames
                  - scripts to get the current settings for the Image sampler
                  - toggling Linear Workflow and setting the input gamma variable in color mapping
                  - toggling the "override viewport" option in the output flyout

                  Thanks so much!
                  emil mertzel
                  vray4rhinoWiki

                  Lookinglass Architecture and Design

                  Comment


                  • #10
                    Also very missed a way to temporary disable all interpolation options at the materials and to change the interpolation max rate (needed for small preview and large final render). I suppose so the temporary disabling isn't possible per scripting, only per global option, right?
                    www.simulacrum.de - visualization for designer and architects

                    Comment


                    • #11
                      it would also be really useful to be able to toggle the LC retrace threshold on/off, and set the value.

                      any word on the progress of this stuff, and/or next release?
                      emil mertzel
                      vray4rhinoWiki

                      Lookinglass Architecture and Design

                      Comment

                      Working...
                      X