Jump to content

Multiple lights as seperate render elements


Koper
 Share

Recommended Posts

Am I just miss looking it or is this just not possible.

 

So you have two spots and want each spot to be saved into its own render element by only rendering once.

 

see attachments.

 

does anyone know how or maybe of any script?

 

 

A

Link to comment
Share on other sites

I have long been jealous of Maxwell's ability to adjust items post render.. Lights, Exposure, etc... It is the one feature I am jealous of in Maxwell.

 

But anyway, ...this may get you one step closer to what you need. It is not exactly what you need, but may be a different way of doing it. I have never used it, but I think it does something similar to do.

 

http://www.evvisual.com/maxscript/script_multilight.htm

Link to comment
Share on other sites

yes, i have seen this but I am thinking of now just scripting all lights into an array and then auto submitting each light in turn to the backburner queue. In effect it will be the same thing

 

thanx for the reply

Link to comment
Share on other sites

Scene states might be an organizational help.

 

Just guessing you ought to be able to batch render various scene states and I think I recall "light settings" is something you can save with scene states. So just turn them all off. Turn them on one at a time and make a new state for each.

 

If you're already scripting, I don't know that that saves you anything. Or anything.

Link to comment
Share on other sites

I did this for a short film I worked on, although not in a way that might be useful to you as it wasn't an element - it basically involved rendering the scene twice (or thrice, or however many lights there were) which was a pain, but it was great to have that control. I ended up just rendering most of the lights white and then tinting it in post, as you had direct control over all of it. Combine that with MR's Arch and Design output elements and i ended up with about 18 passes for each shot, but it meant there was basically nothing I couldn't fix in post due to all the control, or if I needed to re-render, it was often only one of the passes.

 

So I can't help, but I recommend doing it anyway!

Link to comment
Share on other sites

yes, its the control I'm after, and it was about 50 street lamps, but allas, i was just told we're only doing daylight, no night time stuff, bummer

 

 

 

I'm sure the scripts mentioned might help, just sooo much buttons my head goes boooom.

 

 

 

I did however start with a small script and think it can be the backbone for what i described. This script just puts the selected lights or lights in selection into an array (not the targets just the lights) Then there are two for loops, first all the lights are switched off and then in the second loop each light is turned on in sequence and then turned off. it only have some print commands now but anyone will get the idea.

 

 

 

 

the script ---

 

 

lightobjs = (for l in selection where superclassof l == light collect l)

for m = 1 to lightobjs.count do lightobjs[m].enabled = false

 

for m = 1 to lightobjs.count do

(

lightobjs[m].enabled = true

print lightobjs[m].name as string

print "I am on" ---- set the light state

print " I render" ---- run the render settings and submit

print " I am off" ---- set the light state

lightobjs[m].enabled = false

)

 

 

----

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...