About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
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...
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.
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.