PDA

View Full Version : random lens flare intensity for multiple lights



bazsa73
06-24-2014, 04:50 AM
so useful sometimes but rather not, :D



lwsdk.command('SelectAllLights')
items = lwsdk.LWInterfaceInfo().selected_items()
for item in items:
id = lwsdk.itemid_to_str( item )
cmd = "SelectItem " + str(id)
lwsdk.command(cmd)
lwsdk.command("SetFlareIntensity 0")
randintensity = random.uniform(0.05, 0.15)
cmd = "SetFlareIntensity " + str(randintensity)
print cmd
lwsdk.command(cmd)

jeric_synergy
06-24-2014, 06:37 PM
Does....? Sets random amounts of non-enveloped lensflares to all the lights?

#awayFromLW

bazsa73
06-25-2014, 01:15 AM
Does....? Sets random amounts of non-enveloped lensflares to all the lights?

#awayFromLW
Sets the flareintensity only so it is static for the time being, but I want to add enveloped intensities with random keys, I just have to figure out how.

jeric_synergy
06-25-2014, 01:30 AM
Not Noisy Channel?

bazsa73
06-25-2014, 02:48 AM
Not Noisy Channel?

No noise. This is what I can do now. I can parse through a set of lights and set for each a FlareIntensity envelope. But I am stuck now with the createKey command.
I want to add keys to this envelope but this bugger adds key to the transform channels.