[Closed] How to add a Lens Effect with glow to a Light?
Hello everybody!
I would like to add, with Maxscript, a Lens-Effect to my mr-omni light “light01”.
In fact, I’m trying to create a hundred of stars, space-like, where my camera could go trough.
The only way I found was to create a Light, add a Lens effect with the Glow attribute, and then duplicate this light randomly using maxscript. The problem is that the duplication was ok, but it didn’t copy the Lens-Effect attribute.
That’s why I would like to add to my duplicate-script a way to add/copy the Lens-Effect to every copy.
Thanks!
PS: If there is a better way to create my glowing stars, I would like to know it too
thanks again
ER
sorry for my irony…
try to make instances (using instance method), or clone (maxops.clonenodes) with #instance type
Thanks for your answers
I tried with instance<node>, but the result is the same: the Lens attribute is not instanced :banghead:
Edit: But, it seems working with the clonenodes!
But I still want to know if we can add the Lenseffect by Maxscript, cause if I want to have different glow-intensity for each star, the clonenodes is not the solution.
But thanks, I have my 100 stars yippee!!!
i dont know about the maxscript part, but a really easy way to accomplish multiple stars is through PCloud (a form of particle system). the advantage of this is that the particles created by PCloud are not as ‘hard’ on the system as creating multiple objects randomly scattered.
Hi, I also want to create lens effects on lights via maxscript. I don’t understand why the following code has no visible effect:
_LE = lens_effects()
le.addLightNode _LE $Omni001
le.addGlow _LE
It would be great if someone knew how to do this, or a script in which it is done, as I have searched through lots of posts and the help file but can’t find the solution! Thanks
EDIT: Oops, nevermind, all I had to do was add the effect to the rendereffects, i.e. addEffect _LE
I know this inst really what you where asking about but I find that this is over looked a bit. Max has a star field generator. You can even load the file earth.stb which is a database of the stars in earths sky. You might be able to get away with using this for the stars farther in the distance and just use a couple hero lights with glow effects in the foreground.