this is a great example! i try to keep track here but am quite unexperienced with scripting (while willing to learn). started by copying the code from the screenshot.
there are some issues that keep me from get this to run: 1. the script editors content in only editable in between the "your code" section. how can i declare variables in line 22? it appears to be locked. the tooltip error message at the outlet states that strFileName is not declared. 2. where does the bitmap come from? is there a filebrowser dialog popping up when the code is fixed or do i need to connect anything to the inlet? when exactly is the script being executed? the moment i click OK button or when there is input coming in? thanks, frank On Oct 17, 1:28 am, Marc Hoppermann <[EMAIL PROTECTED]> wrote: > hey visose... thats a nice one, too... > Its really amazing how few objects are neccessary to identify the base > image... > > Its a pretty good way of controlling a 2d parametrer grid (point grid > or UVs on a surface). > I've used the RhPicture PlugIn for Rhinoscript quite extensively for > these purposes (facade, etc...). > > Marc > > On Oct 15, 5:36 pm, visose <[EMAIL PROTECTED]> wrote: > > > Nice example. I managed to recreate something similar with the screen > > shots you posted. Here's my cat made out of > > boxes:http://grasshopper3d.googlegroups.com/web/bansan.jpghttp://grasshoppe... > > > On Oct 14, 3:30 am, Marc Hoppermann <[EMAIL PROTECTED]> wrote: > > > > Now that the scriting component works I wanted to test it right > > > away... > > > > The first thing that came into my mind was to use it for reading Pixel > > > images (similar to Davids RhPicture Plugin for RhinoScript) > > > > Unfortunately I don't know how to place images here so here a > > > link:http://shift-lab.blogspot.com/ > > > > The VB component takes the filename of an image and a (x,y) > > > coordinate as an input and outputs the r,g,b values and the resulting > > > greyscale value at the Pixel(x,y). > > > > For that it uses the "getPixel"-method of the DotNET Graphics class... > > > > @David: great stuff!! this is what I have been waiting for... > > > Only one question so far: Is it possible to write code in the locked > > > (grey) areas? It would be great to be able to add Import statements. > > > > Hope to be able to post some more soon, > > > Marc- Hide quoted text - > > > - Show quoted text -
