If at this point you're trying to decide between Grasshopper and RhinoScript, I'd say RhinoScript is much better suited for a task like this. Maybe sometime in the future it will become possible/easier to strictly control the looping algorithms in Grasshopper, but at the moment you will run into big problems.
I wrote a small RhinoScript example of a 3D grid deformation. It doesn't have colours yet, but you can control the deformation with any number of points. If you want to change the strength of a point, just give it a name like 4 or -2. Positively charged points will repel the grid, negatively charged points will attract the grid. http://groups.google.com/group/grasshopper3d/web/3DGrid%20Deformation.zip -- David Rutten [email protected] Robert McNeel & Associates On Feb 3, 8:20 pm, PinkBunny <[email protected]> wrote: > Hello, > I was wondering if anyone could help with the following project or let > me know if this would even be possible. > I initially modeled something in Rhino, but in order to continue and > make the object react to different inputs, I've been told to either > start using Grasshopper or learn scripting before going insane with > some repetitive tasks. > I started going through some Grasshopper tutorials and reading the > (new!) primer and although I can see how some of the definitions could > be applicable to my project, I can't see how I could fit them all > together. > Here is what I would ideally want to do: > > 1. Draw a grid of 10 x 10 x 10 boxes from, let's say, the origin. Each > boxe would have an ID (let's say a number) and I would be able to > select a box, or a group of boxes, within some sort of selection > system. > Initially, I wanted to identity specific boxes in groups via colour > systems...Hence, group 1 would be red, group 2 would be green, etc.. > but I read through a couple of posts saying that it would not yet be > possible? > > 2. Each box would have its 6 faces which could react different > according to an "attractor" (or each pair of parallel faces reacts > differently vs all 6) > > 3. Within this 10 x 10 x 10 grid, there would be interspersed points > (10 of them) which would affect, in turn, the surrounding boxes. > > 4. I would like the faces of the boxes to respond in terms of their > proximity these attractor points by varying their colour (RGB values). > Using a metaphor, these attractor points would be like the sun (value > of RGB 255, 255, 255) and the faces would obtain a new RGB value in > intervals relative to their distance to these attractor points (eg. > the face right next to a point would have an RGB value of 255, 230, > 230) etc, according to their place in 3D. > That's my base model... > > Afterwards: > > 5. I would like to export in excel the new rgb values of the faces vs > what the box was like before > 6. Do some sort of evaluation process to determine if the "new values > of RGB" are close to the old values > 7. If they are close (eg. "cohesive"), then a contamination occurs > where the surrounding boxes' faces acquire the same RGB value as from > the initial one. > > The dynamic aspect would be so see which group of boxes contaminates > their neighbors the most by varying their initial colour (thus > affecting their "cohesive" factor). > > THAT said, I know that there are a couple of aspects that are > possible, from what I learned (grid of boxes, reacting to smtg, > exporting values to Excel), but my knowlegde is very limited. > > If anyone could somewhat mentor me in this and let me know if that > would be possible or what COULD be possible to arrive at that final > conclusion, I would be extremely grateful! > > I would upload the Rhinofile that I have so far done (manually) as > well as a couple of pdfs to visually explain the process but am not > too sure how that is possible. > > Thanks..
