Grasshopper

algorithmic modeling for Rhino

Hi all,

I´ve being using the Giulio Piacentino script to save a rendered image from vray (only one frame):

At the ends says:

    Rhino.RhinoApp.RunScript("_-Render", false);
    Rhino.RhinoApp.RunScript("_-SaveRenderWindowAs \n\"" + savedLocation + "\"\n", false);
    Rhino.RhinoApp.RunScript("_-CloseRenderWindow", false);

My problem is that vray takes a wile to finish the render, but the png file is saved before it ends. So the results its an uncompleted redered image. I tried to add a delay with no luck...

How could I tell the component to wait until the rendering process ends?

Any ideas?

thankss!

Views: 610

Replies to This Discussion

Hi Santiago,

if I remember correctly, VRay has an option called "Batch render" that locks the command till it finishes the render. You should use that.

I hope this helps,

- Giulio
________________
giulio@mcneel.com

nice! Thanks Giulio!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service