PDA

View Full Version : Help with setting up an array of Xpresso nodes


kinkersnick
09-15-2010, 01:52 PM
Hello!

I wonder if anyone here can help me. Fairly new to Xpresso, and not well versed in its finer points.
What I want to do is set up a grid of lights, and have their intensity determined by their proximity to a null (or other object) which passes through the grid.
I've made a set up for a single light which does this fine - though perhaps not in the most efficient way I know. I was hoping to be able to attach the project file, but since I can't on this forum I'll explain briefly.
I've attached the null and the light to the distance node, the output to an invert node (to make the highest value when the null is closest to the light), then range mapped the output to a value between 0 and 1 and clamped the upper. Initially I attached the output straight to the light's intensity, but this gave a result where the light went very quickly from off to on as the null approached it, so I attached a multiply node (multiplying the output by 19, which seemed to give the desired result) and then range-mapped it back to between 0 and 1, with a clamp on the upper. This now gives the desired result in terms of null-proximity to brightness of light.
This is where I am stuck. If I use Mograph to clone the light, all the clones are equally affected based upon the null's relationship to the original object.
Is there a way, short of using mograph to clone the object, making it editable so I have x number of clones, and then copying and pasting the Xpresso setup and manually putting in each input/output, of efficiently doing this? Ideally, I want a grid of up to a hundred lights, so doing this manually will be a nightmare.
Please forgive my ignorance, and thank you in advance for any help!

Best regards,

Steve

JDP
09-15-2010, 03:42 PM
I would try using the falloff node instead of the range mapper. You can use the hierarchy node to iterate through all your objects. See if this example is what you want. Be sure to play with the settings of the falloff node.

HTH

kinkersnick
09-15-2010, 05:45 PM
You sir, are a genius. Thank you so much, problem solved!

Steve

CGTalk Moderation
09-15-2010, 05:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.