[Plugin] V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Mirror forum thread: [Plugin] V-Ray Tools | sketchucation

Load V-Ray on Demand
Since version: 1.1.1
If you use V-Ray floating licenses on a network you face the problem that the first person that starts SketchUp will grab the V-Ray licence even though they might not be currently using it. In order to work around this I made this tool which prevents V-Ray from starting with SU and allowing the user to load it on demand.
It’s also useful if you don’t like the extra 3-5 seconds V-Ray adds to SketchUp’s startup time.
To enable Load V-Ray on Demand, go to the Tools menu, choose: V-Ray Toys->Load V-Ray on Demand. When you restart SketchUp, V-Ray will not be loaded automatically. To start V-Ray go to the Tools menu V-Ray Toys->Start V-Ray.

What the script is doing is renaming the VRayForSketchup.rb file to VRayForSketchup.rb.disabled, thus preventing it from loading automatically.

Camera Sync
Since version: 1.0.0

Here’s a utility that helps you sync the SketchUp viewport with the output of V-Ray for SketchUp.

I tried to make the tool fully automatic. But reading the V-Ray data was harder than I thought. Not impossible though, but I also found out that V-Ray only reads the model attribute dictionary as the file loads and never reads it afterwards. Just writes to it. So you have to enter the values your self.

This has only been tested against SU7 and VfSU 1.05.03 (SR 1.5), but I believe it should work fine with SU6 and VfSU 1.00.70 (SR1.0)

You have to use the Physical Camera in order to sync the outputs!

Note: When you change the size of the SketchUp viewport or the aspect ratio is change by another plugin you need to close end reopen the Camera tools in order to make it update to correct values.

When you export the SketchUp view via SketchUp’s own export tool it will include the grey bars. To export without the grey bar, use the Export utility that comes with this plugin.

Known Issues:

  • No file dialog window to select the output for the exporter. I’ve yet to find a way to do this in Ruby.
  • SketchUp viewport and V-Ray output will not be synced if something changes the size of the SketchUp viewport. (Change in resolution, SketchUp window size, extra toolbars etc…) Close and reopen the tool windows for the plugin to update with correct values.


SketchUp Output


V-Ray Output


Photoshop blended output. Perfect Match! :smile:

Changelog:

  • 1.0.1 - 07.01.2009
    Added File Dialogbox for exporting the camera view instead of having to type in the path manually.
  • 1.1.0 - 21.01.2009
    Added Load V-Ray on Demand functionality.

1.1.1 - 22.01.2009
Restored the Export Viewport.

[/list]

[Download Plugin](http://download.thomthom.net/3d/sketchup/ruby/vray_toys-1_1_1.zip)

Re: V-Ray Toys (1.0.0)

hey presto!!! safe frame ;D
now all we need is a render region and people wont have an excuse for using other render apps (well… almost ::slight_smile: )

Re: V-Ray Toys (1.0.0)

Neat plugin Thom! It’s nice to be able to skip the resizing in PS.

Re: V-Ray Toys (1.0.0)

Nice little app, and I’m looking forward to seeing what the other tools are that you com up with…in the future we should be able to offer some sort of communication with V-Ray.

Re: V-Ray Toys (1.0.0)

That’s very good to hear. I got some ideas and question regarding third party scripting I’ll contact you about later.

Currently I’m working on some tools to manage and manipulate lights as V-Ray read the changes I do to the attribute dictionaries of lights. And the light data was much easier to read.

Re: V-Ray Toys (1.0.1)

Updated to use a File Dialog instead of textbox when exporting the camera view.

Re: V-Ray Toys (1.0.1)

we make a good team thom :wink:

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Any chance of having this is a sticky? Hard to discover on this forum.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Done

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

hey thom2 thanks for this cool tool. your great.. charge asgvis hihihihi…

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Brilliant work Thom!

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

how about if i want to disable vray on the demand.but retaining everything. is there in anyway to have like a switch on and off with the tool aside from uninstalling it.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Plugins (scripts really) cannot be unloaded on demand, so releasing V-Ray would require shutting down SU. I think you can load a script during the middle of a session.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Yup. Scripts can be loaded at any time. But they can’t be unloaded. Though, it is possible to register a plugin as an extension so that you can enable and disable it from Window->Preferences->Extensions. You still have to restart SU for the effects to take place. But at least you dont have to go to the plugin folder and remove the file.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Thanks Thomas, I’ll keep that in mind.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

thanks thom.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

I have vray 1.0 and skp7 but it seems it doesn’t work:

Why could it be? i’ve followed all steps but vray and sketchup output don’t match

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

It will only work with SR1.0 and later. The original VfSU doesn’t work as the camera acts differently.

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

Thanks for the info Thomthom!

Re: V-Ray Toys (1.1.0) - New: Load V-Ray on Demand

ThomThom, I got this script a couple of weeks back off the sketchucation website, and its fantastic. The only issue I have had with it is exporting the image out using your dialogue box - when its above 3200px wide it just produces and error if anti-aliasing is switched on. That is with SU6, it may work with SU7 because I know they sorted out the SU6 resolution exporting issues.