Announcement

Collapse
No announcement yet.

sampler with maxscript

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

  • sampler with maxscript

    Hello!

    I try to get to the "sampler" option (bucket/progressif) using maxscript for the gpu render, but I can't find the function under .V_Ray_settings

    I thought it was
    vr.imageSampler_type : integer
    or
    vr.imageSampler_type_new : integer

    but no

    can you please help me out with this?
    Thanks!

  • #2
    Hello JulianD

    vr=renderers.current
    showproperties vr

    Code:
    renderers.production.sampler_type = 0   -- Bucket
    renderers.production.sampler_type = 1   -- Progressive
    Last edited by Nikita2016; 28-01-2022, 06:13 PM.

    Comment


    • #3
      Awesome!! thank you

      Do you know where I can find the manual for the option in the vrayproperties? (matte, alpha contribution, ect)?

      Thx!

      Comment


      • #4
        Code:
        for o in selection do
        (
        setUserProp o "VRay_Matte_Enable" true
        setUserProp o "VRay_Matte_Alpha" 1.0
        )
        Last edited by Nikita2016; 28-01-2022, 06:19 PM.

        Comment


        • #5
          thank you but I have a lot of parameters to tweek in the vrayproperties, like almost very parameters in *right click on an object" -> "vray properties".

          Is there a .vrayproperties shortcut or a manual?

          Comment


          • #6
            Select new created object
            Open and Close "VRay Object Properties" dialogue (https://forums.chaos.com/forum/v-ray...-you-open-them)
            and
            Code:
            getUserPropBuffer $
            But many options are not available in Vray GPU
            Last edited by Nikita2016; 28-01-2022, 06:21 PM.

            Comment


            • #7
              I tried the code provided by the thread but it doesn't work


              Code:
              (
              if ( findstring (getUserPropBuffer $ ) "VRay" )== undefined do
              (
              setUSerPropBuffer $ "VRay_MoBlur_GeomSamples = 2
              VRay_GI_Generate = True
              VRay_GI_Receive = True
              VRay_GI_Multipier = 1.000000
              VRay_GI_GenerateMultipier = 1.000000
              VRay_GI_SubdivsMultiplier = 1.000000
              VRay_Caustics_Generate = True
              VRay_Caustics_Receive = True
              VRay_Caustics_Multipier = 1.000000
              VRay_MoBlur_DefaultGeomSamples = True
              VRay_Matte_Enable = True
              VRay_Matte_Alpha = -1
              VRay_Matte_Shadows = False
              VRay_Matte_ShadowAlpha = False
              VRay_Matte_ShadowColor = [0,0,0]
              VRay_Matte_ShadowBrightness = 1.000000
              VRay_Matte_ReflectionAmount = 1.000000
              VRay_Matte_RefractionAmount = 1.000000
              VRay_Matte_GIAmount = 1.000000
              VRay_Matte_GI_OtherMattes = True
              VRay_GI_SurfaceID = 0
              VRay_GI_VisibleToGI = True
              VRay_GI_VisibleToReflections = True
              VRay_GI_VisibleToRefractions = True
              VRay_Mesh_Geometry = 2
              "
              )
              )
              I change 2 values
              VRay_Matte_Enable = True
              VRay_Matte_Alpha = -1

              still "off" and alpha "1" in the vray properties.


              Just to be sure we talked about the same thing, I attached a screenshot to that post.

              Also, yes matte -1 doesn't work with GPU but I'd like to be able to make it on/off

              Thank you!
              Attached Files

              Comment


              • #8
                thank you but I have a lot of parameters to tweek in the vrayproperties, like almost very parameters in *right click on an object" -> "vray properties".

                Is there a .vrayproperties shortcut or a manual?

                https://cloud.mail.ru/public/VQpT/uw6KHLcyY
                Last edited by Nikita2016; 28-01-2022, 07:38 PM.

                Comment

                Working...
                X