Announcement

Collapse
No announcement yet.

Multiple file rendering

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

  • Multiple file rendering

    What I try to do...

    Being also member of an Octane group I love quick little experiments using physics on simple forms rendered as a nice movie. So with in Sketchup I can do the same using MSPhysics and play around. The problem is, I can't render it.

    What does work...

    MSPhysics is able to export the entire animation as seperate .skp file for every frame. So I've now 1200 skp files which could be rendered if only I had the time to load them one by one, press render, save and load the next one...

    What would be nice...

    A Ruby (?) script which just does a kind of batch treatment on a directory you pick from within Sketchup. I think that would be also the easiest way to implement it. And while I use it to do a little physics animation I think such a script would be useful for others as well. Maybe it also should have an option for certain settings for V-Ray so you can change them and they would override the ones enclosed with the .skp files.

    What would be even better...

    Really support of some of those plugings like MSPhysics, SketchyPhysics, Clothworks... etc

    Benefits for Chaos group...

    Since those animations look really nice and impressive although they are pretty simple to realize I think it could add something to the popularity of V-Ray as render plug for Sketchup.

    At the end...

    If you guys need someone to test something like it I'll be more than happy to try it
    V-Ray 6 Beta | Intel i9 9900K | 64GB | 1x 512GB EVO 970 Pro SSD | 1x 1TB Kingston SSD | 2x 6TB SATA | 1x 4TB SATA | 1x RTX 3090 24GB

  • #2
    Hello,

    Rendering a multitude of .skp files one by one can be automated via a script, although it will still take some time to load each .skp file and V-Ray numerous times.
    Attached below is a simple one which requires only manually adding in a text editor input folder path (location of .skp files) and output folder path (location where rendered images will be written).

    Our developers are looking into implementations of a more functional batch render tool (akin to V-Ray for Rhino's), which can execute .skp and/or .vrscene file sequences with a single click. Possible BR implementations, however, are scheduled for the upcoming V-Ray Next for SketchUp.

    If you wish to have a certain SketchUp plugin compatible with V-Ray, it would be best to send a request to its developer who can then get in touch with us to discuss possible solutions.

    Kind regards,
    Peter
    Attached Files
    Peter Chaushev
    V-Ray for SketchUp | V-Ray for Rhino | Product Specialist
    www.chaos.com

    Comment


    • #3
      Sorry, where do you run the script?


      OakCorp Japan - Yuji Yamauchi
      oakcorp.net
      v-ray.jp

      Comment


      • #4
        Originally posted by Peter.Chaushev View Post
        Rendering a multitude of .skp files one by one can be automated via a script, although it will still take some time to load each .skp file and V-Ray numerous times.
        Attached below is a simple one which requires only manually adding in a text editor input folder path (location of .skp files) and output folder path (location where rendered images will be written).
        Hi Peter,

        Thanks for your reply and I'm gonna try the script. I'm no real programmer but I think it also should be possible to pause (for example) MSPhysics after every frame, execute a V-Ray render and continue. There is some good documentation as well at https://www.rubydoc.info/github/Anto...SPhysics/index but I'll check with the author. I really think the possibilities would be impressive. If I manage to fix something using your script I'll post it here and maybe I can extend your script a bit but although I like to puzzle and combine stuff I'm new with Ruby.

        Thanks again!



        V-Ray 6 Beta | Intel i9 9900K | 64GB | 1x 512GB EVO 970 Pro SSD | 1x 1TB Kingston SSD | 2x 6TB SATA | 1x 4TB SATA | 1x RTX 3090 24GB

        Comment


        • #5
          Originally posted by flat View Post
          Sorry, where do you run the script?
          Make sure to open the script file (using Notepad or Notepad++, for example) and write down the directory where the SketchUp projects are located as well as the folder where you want the rendered images to be deposited:

          SimpleRenderTest.new(
          input_path: "input path",
          output_path: "output path"
          )


          An example of how it should look with projects located in a folder called SKP_Files and desired output location called Rendered_images (both created on my Desktop):
          Notice the path is written with forward slashes / , not backslashes \

          SimpleRenderTest.new(
          input_path: "C:/Users/Peter/Desktop/SKP_files",
          output_path: "C:/Users/Peter/Desktop/Rendered_images"
          )


          Once this is done, open SketchUp and its Ruby Console. Then you can either copy and paste all the text from the script directly in the console, or use the following line (edit based on your .rb file location):

          require 'C:\Users\Peter\Desktop\SKP_Batch_Rendering_01\SKP _Batch_Rendering_01.rb'


          Kind regards,
          Peter
          Peter Chaushev
          V-Ray for SketchUp | V-Ray for Rhino | Product Specialist
          www.chaos.com

          Comment


          • #6
            Hi Peter,

            Thanks for helping! I also wrote the author of MS Physics and he just send me your script but a little bit more user friendly. He doesn't have time to develop MSPyshics more but he said it shouldn't be that difficult to connect the plugin to V-Ray without the need to save all seperate SKP files.

            This was his reply:

            Oscar,

            I do not have time to work on MSPhysics. The script you provided indeed would be simple to implement without even saving as separate models. Compatibility with rendering plugins is something that I am looking forward to implementing in the future.

            Meantime, I would focus on getting the Vray script properly utilized.

            I have attached a fixed one. Place it into your plugins folder. After you export to SKPs, access (Menu) Plugins > Vray Render SKP Sequance and select your folder where the SKP sequence is located.

            I have not tested it.

            Anton
            He also has a lot scripting documentation available and I really want to dive into it since I think it would be cool but my ruby knowledge is very limited. You find the MSPhysics documentation here: https://www.rubydoc.info/github/Anto...SPhysics/index

            Maybe it's really simple for you to connect both in a bit smarter way. In the mean time I'll puzzle myself if I can see some logic and try to get it working
            Attached Files
            V-Ray 6 Beta | Intel i9 9900K | 64GB | 1x 512GB EVO 970 Pro SSD | 1x 1TB Kingston SSD | 2x 6TB SATA | 1x 4TB SATA | 1x RTX 3090 24GB

            Comment


            • #7
              Can this script be updated to work with V-Ray 6?

              OakCorp Japan - Yuji Yamauchi
              oakcorp.net
              v-ray.jp

              Comment

              Working...
              X