Announcement

Collapse
No announcement yet.

New Script - Tweaker, by Colin Senner

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

  • New Script - Tweaker, by Colin Senner

    Hey VRayers,
    I wrote a great script the other day and wanted to share it. I hope you love it like I do.

    It's called Tweaker. It allows you to tweak almost any property on an object, an object's material, an object's modifiers, any map, and renderer settings and it will render out a sequence of images for the settings you choose.

    For instance, I have a 3d ZBrush head that I'm finishing up and I just can't nail down the glossiness value for good looking skin. Load up tweaker, select "Pick Object" and select the head. Under the "Material Properties" select the VRaySSS2 material's "specular_glossiness". Set the spinner "From" to maybe like .3, and "To" to .9 and by ".05" and hit render, select the directory to save the images to and check them out when they're done!

    Ok, ok, now let's say I have a VRayHDRI map that's lighting my scene and I want to find the best horizontal rotation for a shot. Easy. Run Tweaker, click "Pick Map" and select the HDRI that is lighting your scene. Double click on "Horizontal_Rotation" (or whatever it's called) and set from to 0, and to to 360, and by 25. And you'll get renders every 25 degress of the HDRI.

    Ever wonder exactly what the difference was between a noise threshold set to 0.01 and 0.005 and everything in between? No problem.

    The script is located on my site under the top heading "Scripts", I would post it here, but it'll be too hard to maintain the most current version on multiple sites.

    Use it and enjoy it, let me know your experiences with it.


    Features:
    - All frames are frame stamped with the corresponding changing value and the current value of it
    - All filenames are saved with the corresponding changing value and the value it is set to in the render
    - Allows you to edit almost any property and displays the result (modifiers, materials, render settings, etc)

    Known Problem:
    - Renders come out too dark if using VRay Frame Buffer and some mix of LWF. To fix just disable VRay Frame Buffer.

    Click image for larger version

Name:	Tweaker_Screenshots.jpg
Views:	1
Size:	350.8 KB
ID:	869959

    -Colin
    Last edited by MoonDoggie; 22-07-2010, 02:36 PM.
    Colin Senner

  • #2
    This looks really handy Colin. I haven't tried it yet (got some renders running on the whole farm tonight) but wondering if you would consider combining the sort of functionality that you can do with Bercon Preview Render? It would be *extremely* useful to be able to use those kind of quick quality overrides in combination with your script. I would think that would be a very viable commercial script combination - it would certainly get a donation from me anyway

    b
    Brett Simms

    www.heavyartillery.com
    e: brett@heavyartillery.com

    Comment


    • #3
      Brett, you've donated plenty to my scripting college loan fund already :P. I'll actually get in touch with mister Bercon and see if we can figure something out. If he hears this, he should contact me.
      Colin Senner

      Comment


      • #4
        Sounds interesting.

        Early on in any image production, we do a sunlight study to find the best position of the sun/time of day. We use the Daylight System usually for our lighting, changing the sun to a vraysun and adding the vraysky into the environment. Would Tweaker allow us to change the time of the sun from say, 8am to 6pm and render every hour (or something like that)?
        Kind Regards,
        Richard Birket
        ----------------------------------->
        http://www.blinkimage.com

        ----------------------------------->

        Comment


        • #5
          I'll test it, but yes, that's exactly it.
          Colin Senner

          Comment


          • #6
            Ok, tested it. It won't currently do it because the parameters for controlling the sun/sky time are on a controller of the object. I'll add support for controllers as well if you like.
            Colin Senner

            Comment


            • #7
              Updated the version on my site to automatically disable VRayFrameBuffer and re-enable it if it was on previously.
              Colin Senner

              Comment


              • #8
                I'm uploading a video now of the functionality
                Colin Senner

                Comment


                • #9
                  Video of the script here. I uploaded it at 720p and it just doesn't look very good, but you should get the idea.

                  Colin Senner

                  Comment


                  • #10
                    Nevermind, it comes up in 720p now.
                    Colin Senner

                    Comment


                    • #11
                      So has control over the sunlight system been implemented?
                      Kind Regards,
                      Richard Birket
                      ----------------------------------->
                      http://www.blinkimage.com

                      ----------------------------------->

                      Comment


                      • #12
                        Negative, I will work on it in the next couple days and post here when it's up.

                        -Colin
                        Colin Senner

                        Comment


                        • #13
                          Tricky, Tweaker now supports tweaking the sun/sky system as well as all controllers that might be applied to objects as well.

                          Note: To select the Sun/Sky System, I added a button "Pick List". To get the entire assembly (which is where the controller is applied) you have to pick list it. The way that max handles it though is strange. I couldn't get it to tweak any of the minutes, just the hours, and max always rounds the hours up and doesn't have access to the minutes from what I could see. Either way it works like a charm. I combined "Renderer Properties" and "Controller Properties" into the last listbox because I didn't want the script to be so wide. Download it from my site under "Scripts".

                          Enjoy, let me know what you think.

                          -Colin
                          Colin Senner

                          Comment


                          • #14
                            Originally posted by MoonDoggie View Post
                            Tricky, Tweaker now supports tweaking the sun/sky system as well as all controllers that might be applied to objects as well.

                            Note: To select the Sun/Sky System, I added a button "Pick List". To get the entire assembly (which is where the controller is applied) you have to pick list it. The way that max handles it though is strange. I couldn't get it to tweak any of the minutes, just the hours, and max always rounds the hours up and doesn't have access to the minutes from what I could see. Either way it works like a charm. I combined "Renderer Properties" and "Controller Properties" into the last listbox because I didn't want the script to be so wide. Download it from my site under "Scripts".

                            Enjoy, let me know what you think.

                            -Colin
                            Clever man. Will give it a try at my next opportunity. Odd how Max handles the minutes...
                            Kind Regards,
                            Richard Birket
                            ----------------------------------->
                            http://www.blinkimage.com

                            ----------------------------------->

                            Comment


                            • #15
                              very strange huh? I was baffled, I think it doesn't care what that time is set to, it just wants the Azimuth and Altitude, but I'm not sure.
                              Colin Senner

                              Comment

                              Working...
                              X