Announcement

Collapse
No announcement yet.

Set all textures blur to some value

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

  • Set all textures blur to some value

    Hi guys,
    just troubleshooted my scene that was suddenly rendering for 18h (estimate) on GPU RTX rendering. Started hiding imported objects (from Evermotion interiors volume 59) and found out some of them use blur 0.01 which I'm pretty sure is what is killing my scene. When I hid only a few objects that were from there the scene rendered in like 5 mins or something. Crazy difference. Anyway I can set all the textures in scene to like 0.1?
    Thanks
    www.hrvojedesign.com

  • #2
    You can do this via maxscript:
    Code:
    for i in (getClassInstances Bitmaptexture) do i.coords.blur=0.1
    If the scene uses VRayHDRI (VRayBitmap), then:
    Code:
    for i in (getClassInstances VRayHDRI) do i.coords.blur=0.1
    Last edited by 3DZver; 21-09-2023, 06:28 AM.
    V-RayMax Converter PRO
    MAXTools

    Comment


    • #3
      Thank you sooo much! Will try it.
      www.hrvojedesign.com

      Comment


      • #4
        Originally posted by 3DZver View Post
        You can do this via maxscript:
        Code:
        for i in (getClassInstances Bitmaptexture) do i.coords.blur=0.1
        If the scene uses VRayHDRI (VRayBitmap), then:
        Code:
        for i in (getClassInstances VRayHDRI) do i.coords.blur=0.1
        This is working perfectly! How would I implement an "if" so it only changes values that are lower than 0.1?
        www.hrvojedesign.com

        Comment


        • #5
          I tried all of these scripts, and none worked 100%. Here are the three that I have tried:

          for m in (getclassinstances bitmaptexture ) do m.coords.blur = 0.1
          for m in (getclassinstances VRayHDRI) do m.coords.blur = 0.1
          for m in (getclassinstances bitmaptexture ) where (m.coords.blur < 0.1) do m.coords.blur = 0.1

          I have found that converting the scene to TXT solves the problem 100%​
          Bobby Parker
          www.bobby-parker.com
          e-mail: info@bobby-parker.com
          phone: 2188206812

          My current hardware setup:
          • Ryzen 9 5900x CPU
          • 128gb Vengeance RGB Pro RAM
          • NVIDIA GeForce RTX 4090
          • ​Windows 11 Pro

          Comment


          • #6
            Thanks! Will use that.
            www.hrvojedesign.com

            Comment


            • #7
              Originally posted by glorybound View Post
              I tried all of these scripts, and none worked 100%. Here are the three that I have tried:

              for m in (getclassinstances bitmaptexture ) do m.coords.blur = 0.1
              for m in (getclassinstances VRayHDRI) do m.coords.blur = 0.1
              for m in (getclassinstances bitmaptexture ) where (m.coords.blur < 0.1) do m.coords.blur = 0.1

              I have found that converting the scene to TXT solves the problem 100%​


              Sorry, but any ideas why this script is not working when I put it in a macro button?
              When I copy/paste it to the listener it's ok, but in button it doesn't work. It looks like this in the button

              macroScript Macro4
              category:"DragAndDrop"
              toolTip:""
              (
              for m in (getclassinstances bitmaptexture) do m.coords.blur = 0.1
              for m in (getClassInstances VRayHDRI) do m.coords.blur = 0.1
              )
              www.hrvojedesign.com

              Comment


              • #8
                I use an script that can batch many material/bitmap config, its a little tricky, hope this could help

                Click image for larger version  Name:	Multisub+Enmesh.gif Views:	0 Size:	520.8 KB ID:	1209154
                Carlos Rodriguez
                RTstudio
                Tutorials

                Comment


                • #9
                  Just use Modifier Modifier Zorb, that thing can batch change anything.
                  A.

                  ---------------------
                  www.digitaltwins.be

                  Comment


                  • #10
                    Thanks for the suggestions guys. Trying the first one, seems to be working.
                    www.hrvojedesign.com

                    Comment

                    Working...
                    X