Vray cache file switch

Feature 1#:

A tool bar shortcut that will switch vray from" "single frame" mode to "from file" mode and vice versa.

this will make revisions much more enjoyable.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
crystal3d's picture

hurray! :)

with your help, i could accomplish this

renderers.current.adv_irradmap_mode = 2 -
renderers.current.adv_irradmap_mode
renderers.current.lightcache_mode = 2 -
renderers.current.lightcache_mode

just what it lacks is the getting the camera name for the saved cache files names...

crystal3d's picture

hello and thanks for the code

i pasted as new script and evaluated. it only switched irradiance map mode, lightcache stays the same... however i have a better solution in mind if you are interested.

Create vray cache files from camera's name and switch

it grabs the camera's name,

puts vray into single frame mode both for lightcache and irradiance

toggle "use camera path" on

toggle "autosave" on using last used directory for cache file location(silently), using "camera's name" for file cache file's names

toggle "switch to "from file" on render end" on

executing the script restarts the commands...

 i would love to have a script working like that see, i have a scene that has 70 cameras inside, all managed by layers , i do alot of switching between files

 

please tell me what you think.

Garp's picture

Try this:

renderers.current.adv_irradmap_mode = 2 - renderers.current.adv_irradmap_mode

When switching from "single frame" to "from file", if there is no file specified, the open file dialog will pop up. Otherwise the toggle is silent.

Bundle it in a macro and evaluate once. Then assign your shortcut in the customize UI dialog.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.