Hi, guys
I'm looking for a script who automatically turn off other Vray suns when one is enable.
In architectural rendering, we make multiple point on view with many suns positions, but on earth, there is only one sun in one position at a time...
Forum topic · Scripts Wanted
Architectural rendering - Only one Vray sun enable at a time
By Tokamak · 2020-01-17
Downloads
- sunscams.jpg — sunscams.jpg44 KB
Description
Comments (5)
Thanks!
Tokamak · 2020-01-21
Woh! Thanks Kostadin! It works well, even in Vray light Lister.
Time saver when testing different sun positions in ActiveShade!
Do you know if its possible to add an "auto enable vraysun on select"? There is no keyboard or Quads shortcut to enable/disable vraysun.
.
miauu · 2020-01-21
function EnabledVRaySunOnSelect =
(
if selection.count == 1 do
(
selObj = selection[1]
if classOf selObj == VRaySun do
(
selObj.enabled = true
for o in lights where o != selObj and classOf o == VRaySun and o.enabled == true do o.enabled = false
)
)
)
callbacks.removeScripts id:#Miauu_EnabledVRaySunOnSelect
callbacks.addScript #selectionSetChanged "EnabledVRaySunOnSelect()" id:#Miauu_EnabledVRaySunOnSelect
EnabledVRaySunOnSelect.....Perfect!
Tokamak · 2020-01-23
Thanks again Kostadin!
This version is way better than the first one. No need to click somewhere, just selecting one sun is enough to test a different scene lighting.
I thing you can propose this script as a new time sever tool for architectural rendering guys.
It's especially useful when your are in meeting with an architect and he ask you to test many lighting conditions.
.
miauu · 2020-01-23
Thank you.
I will release it as a new script when I have free time.
.
miauu · 2020-01-18
Try this:
vraySunAutoDisable_ade234 = undefined
function DisableEnabledVRaySun ev n =
(
obj = getAnimByHandle n[1]
if obj != undefined do
(
if classOf obj == VRaySun do
(
if obj.enabled == true do
(
for o in lights where o != obj and classOf o == VRaySun and o.enabled == true do o.enabled = false
)
)
)
)
vraySunAutoDisable_ade234 = NodeEventCallback modelOtherEvent:DisableEnabledVRaySun