Results 1 to 5 of 5

Thread: random lens flare intensity for multiple lights

  1. #1

    random lens flare intensity for multiple lights

    so useful sometimes but rather not,

    Code:
    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)

  2. #2
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,726
    Does....? Sets random amounts of non-enveloped lensflares to all the lights?

    #awayFromLW
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  3. #3
    Quote Originally Posted by jeric_synergy View Post
    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.

  4. #4
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,726
    Not Noisy Channel?
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  5. #5
    Quote Originally Posted by jeric_synergy View Post
    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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •