algorithmic modeling for Rhino
Hi, I have a collection of closed polylines I want to assign to layers. Now as far as I can ascertain, grasshopper does not link this type of data with in Rhino, but if I can simulate my layers in the Grasshopper environment I should be able to create the layers in Rhino, once baked...right?
First how can I take my curves (polylines) and assign each individual one a specific value, specifically a layer with a name and a colour?
Secondly how do I get these parameters baked?
I am a relatively new Grasshopper user and my knowledge base is very limited so please understand where I am coming from.
Thank you.
Tags:
Phew, not just yet. As I mentioned I am really a novice and when it comes to coding, I only dream about it at this point, I will venture into the code for interest sake but I don't think I am up to this yet.
As for loading the bake component, I don't understand, I am currently using it, what am I missing, and what is VS, a language such as C#.net?
Thanks, Rob.
VS=Visual Studio
Did you copy the "bake.gha" into your ComponentFolder (File-SpecialFolders-ComponentFolder)? You said you get a warning message (when the component is missing in the ComponentFolder) but you are using it?
My apologies, I am getting wires crossed. The warning message occurred when I took a look at your component. The component I am using is the one from Giulio, that was modified by Brepkrew. How does one load a VS component?
Thanks, Rob.
In Grasshopper, choose File > Special Folders > Components folder. Save the gha file (bake.gha, it's in the zipped folder) there.
Restart Rhino and Grasshopper
Thank you very much for the continued assistance with this definition, I will take a look at loading of your component as soon as I have a moment. I am very tempted to get stuck into my Grasshopper and get side-tracked with this definition, unfortunately deadlines loom and I must not be distracted. I will have a peek this evening, and will get back to you on my progress.
Thanks, Rob.
Hi Ralf, I apologise for not getting back sooner, this is the first moment I have had to look at this definition again, and it is now solved. I looked at the scripting in Giulio's component as you suggested and the answer was there. I did not need to add anything to the script, I had wired up the component wrong.
All the colours I created for my layers, were display colours, and when removed from the component, it automatically adopted the properties of any layer already existing in the Rhino interface, which is what I was looking for.
1. Take a brep I have drawn.
2. Contour the brep along a z vector, at a distance of my choosing.
3. Offset the contour by a distance of my choosing.
4. Bake the contours to corresponding layers in Rhino, in the chosen order.
5. ALL IN ONE GO.
Thanks for the interest and the input.
All the best Rob.
Rob,
I'm glad you worked it out. And even better if it was more straight forward without digging to deep into the code. How does it work if you haven't already got the layers in Rhino?
Best,
Ralf
It just bakes to the default layer(black), the rest is the same.
All the best Rob.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by