PDA

View Full Version : render selected with options



gar26lw
11-11-2017, 07:49 PM
hi,

does anyone know of a way that i could render selected (same as pressing f11) but instead of just rendering the items, unselected items are toggled unseen by camera but retain seen by rays.
so selected items can be rendered with gi and col bleed from hidden objects being retained.

the only way i can see to do it is to have a modifed version of the toggle visibility scripts here:

https://www.lightwave3d.com/assets/plugins/entry/ef-itemvisibilitytoggle

thanks

ernpchan
11-11-2017, 10:14 PM
You'd probably need to make a custom script to do that. LW doesn't have that function natively.

gar26lw
11-11-2017, 10:15 PM
yeah, thats what i thought too. any takers? :)

ernpchan
11-11-2017, 10:21 PM
Sounds like a good opportunity for you to learn scripting. :D

gar26lw
11-11-2017, 10:23 PM
hah, well i wondered about the script docs. are they online?

ernpchan
11-11-2017, 10:38 PM
https://www.lightwave3d.com/lightwave_sdk/

Understanding how to use them is a different story. You can dissect the scripts that come installed to try to get an idea of how scripts work. Ryan Roye has a tutorial set that goes into how to script.

MonroePoteet
11-12-2017, 09:21 AM
Here you go. It's two scripts: One which walks the list of unselected objects and sets Unseen by Camera and clears Unseen by Rays, and the other sets all objects Seen by both Camera and Rays.

I wasn't sure if you want to force Seen by Rays, or retain the current settings you've manually set. If you only want the Unseen by Camera option to be effected, you can comment out (with // at the beginning of the line) the lines containing UnseenByRays();

Note that you'll want to use F9 for single-frame renders rather than F11. The Selected Object(s) will be the only ones rendered, but if you use F11, it doesn't seem to cast reflections from items Unseen by Camera.

The Unseen by Radiosity and Unaffected by Fog aren't changed, but the scripts could be modified to do so.

Hope it helps!
mTp

Chris S. (Fez)
11-12-2017, 04:50 PM
Here you go. It's two scripts:
mTp

Wow. Nice. Thanks!

gar26lw
11-13-2017, 04:56 AM
absolutely fantastic. thankyou very much!