Notifications
Clear all

[Closed] question for " rdg " Particle Lights

With your script in ” particleLights_04 been trying to increase the the light limit beyond the current 100 limit, cant find it, is this possible ?

TIA

10 Replies
 rdg

cool, somebody really uses this!

The 100 is currently hardcoded in the setup script:

spinner lightNum "Number of Lights " range:[1, 100, 10] type:#integer

Just change the range maximum to a higher number.

I often don’t know how to set the ranges … but in this case an input box might be a better choice.

If there are other questions don’t hesitate to post!

Georg

 PEN

lightNum.range=[0,1000,0]

 rdg

cool! (message is too short)

Your script is very cool ! Thanks for the input on the numbers, but i cant find where they go, is there a hidden place ?
i’m stilling learning the script thing. All i see is the script in the Pflow flow. Where is the other code ?

 rdg

hm.
You only have a scene where this is part of pflow?

Then it might be

$pflow.[path_to_custom_attribute].lightNum.range=[0,1000,0]

But this is only guessing.

The “other code” is downloadable in the pflow thread – it kinda installs the custom attribute in the pflow opperator …
http://forums.cgsociety.org/showpost.php?p=4211882&postcount=3830

Please take a look if anything of this makes sense for you.
I will be online maybe sunday …

 rdg

With particleFlow-Node selected:

$.lightData.params.lightNum.range = [0,1000,200]

where [min, max, default].

Hope this helps,

Georg

node ? … where does this code get loaded into the system ? …

thanks for your help …

 rdg

n

ode ? … where does this code get loaded into the system ? …

well, my pflow-lights-hack is a hack and not really an end-user-plugin.

You need to select the PFlow-Object in your scene.
Open a new maxscript (Maxscript -> new Script)
Copy&paste the code from the last post:

 $.lightData.params.lightNum.range = [0,1000,200]

evaluate the code (File -> Evaluate all).

Now the slider range in the Pflow-Object should have changed.

Maybe this helps.

Georg

[left]Right on rdg, thanks[/left]
[left]Here is a sample of 1000 5 degree spots with shadows on.[/left]
[left]render in about 1 min.[/left]

Page 1 / 2