Hi guys...i'm new in this group.I began to use grasshopper a mounth ago,but i'm really interested in this example...so Visose can i ask you to post the definition file of the screenshot you posted?
On 17 Dic, 09:41, visose <[email protected]> wrote: > > I am not doing something right... So if I understood well, I don't > > even have to make a mesh in order to color it? > > You don't have to create a mesh. Meshes are colored per vertex, that's > why you don't get a different color per object. If you input a list of > colors in the mesh component, every color will be assigned to a > vertex, not to an object. > > > Ah... I realized that my angle of rotation is some set of some crazy > > numbers... I have to scale somehow this array to the level of 0-1/2. > > You really don't have to scale it to the same range as me, just change > the upper and lower limits of the gradient component so that it > matches the maximum and minimum values of the list of numbers you are > using. > > > Is it possible to make a function (without Vb) which will find > > corresponding values that i have, lets say array of numbers from 3.xxx > > to 7.xxx in irregular steps, on the scale from 0 to 1/2 ? > > You mean 0 to 1/2*PI. You could do it by math or use the 'graphmapper' > component. Set the graph type to linear, double click on it to open > the graph editor and set the x interval as 3.xxx to 7.xxx and the y > interval as 0 to 1/2*PI. > > > And can I bake this shader? or is there a way to get it colored in > > render. > > Not yet I'm afraid, but you can capture the viewport to an image file. > If you use the -ViewCaptureToFile command you can specify the output > resolution. You can also use the 'testsetaalevel' command to improve > the quality. But still it can't be compared to an actual render. > > On Dec 17, 4:37 am, JaH <[email protected]> wrote: > > > I am not doing something right... So if I understood well, I don't > > even have to make a mesh in order to color it? > > Ah... I realized that my angle of rotation is some set of some crazy > > numbers... I have to scale somehow this array to the level of 0-1/2. > > Maybe that is next question then, since i am not too good with > > arithmetic. > > > Is it possible to make a function (without Vb) which will find > > corresponding values that i have, lets say array of numbers from 3.xxx > > to 7.xxx in irregular steps, on the scale from 0 to 1/2 ? > > > And can I bake this shader? or is there a way to get it colored in > > render. > > > Thanks a lot > > > JaHko > > > On Dec 17, 12:31 am, visose <[email protected]> wrote: > > > > You should be able to recreate it by just adding those 3 components, > > > there are no hidden settings you need to toggle. In the gradient > > > component I placed as the lower limit '0', and as upper limit PI/2 (90 > > > degrees in radians), assuming the maximum rotation of the rectangles > > > is 90 degrees. As for the 'parameter along gradient range', it's > > > exactly the same number as the rotation amount of your rotation > > > component (assuming you did it using a rotation component). In the > > > opengl shader component, Kd is simply the color of the material, don't > > > worry about the rest of the inputs. > > > > On Dec 16, 3:41 pm, JaH <[email protected]> wrote: > > > > > Hey, > > > > Thanks for the answer... I have the latest version i will try it first > > > > thing in the morning... > > > > I will try to recreate the example you did but I am not sure that I'll > > > > be able to do it. I just don't understand the principle that shader > > > > works and what kind of parameters i need to have thing you got... > > > > > I was trying to recreate some other examples and i sucseeded in > > > > getting series of color information but somehow all the panels were > > > > getting the same colour... > > > > > Thanks a lot! > > > > Janko > > > > > ps. is there a chance to get definition file?
