Grasshopper

algorithmic modeling for Rhino

Over the last few days i have been working on a rather large contour map that was required to be segemented up to for the lazer cutter. It was easy enough to write the GH code for segementing the map and baking it to rhino to set layers as I have Mode Tools Plugin, but when it came to auto baking the Height Numbers out of GH that was a different story. On my travels though the forum I found parts of my over all plan but not one single system that did all i required. I did however find Mitch's Code http://www.grasshopper3d.com/forum/topics/text-curves-from-a-string... for converting Rhino text into single line crvs in Monkey. From here i went on the hunt for the knowledge and codes i need to get this input text into rhino using GH Inputs.

Below is the link to the VBscript that writes text to a given layer in Rhino using GH Inputs in GH6.59.
Must note i am just starting Scripting in VB all i did was edit/merge current scripts
Create Layer script was orginally written by Rajaa Issa (Thank you..hope you don't mind the edit)
And Text Bake script was from Rhino .NET SDK (Thanks to Damien for pointing that out)
Thanks Mitch for the Final Code for Single Crv Text in Monkey

Enjoy
Matt

Bake Text to Layer.ghx


Views: 6207

Comment

You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Matt Gaydon on March 28, 2017 at 10:56am

Hi Bob,

Had a look at the code, and it seems at the time i was using On3dpoint and not OnPlane so you text would always bake flat, i have been able to edit this so it works with input planes but as the code is so old i am now getting errors as it was written pre-Rhino Common for Rhino V4.

I should be able to update the code later, but you maybe better off using Elefront plug-in that has an option to create text that can be baked with their bake component.

http://www.food4rhino.com/app/elefront

Comment by Bob Rebadow on March 28, 2017 at 9:44am

Hi, thanks for the great script. It works really fine for straight text objects. Currently I´ve got some rotated one and wanted to bake them as well, but these come out straight, too :(
Does anyone know how to bake rotated text, as well?

Comment by Ferenc Schell on November 18, 2015 at 1:27pm

This is the solution I neded, thank you for sharing!

Comment by Bill Allen on January 27, 2015 at 9:41pm

This was incredibly helpful.  Exactly what I needed.  Thank you very much for sharing!

Comment by Lukas Antoni on April 19, 2011 at 4:00am
Thank you very much...was extremly helpfull to me.
Comment by Christoph Schindler on October 8, 2010 at 8:45am
This is just what I was looking for–
Comment by Pablo0o0oo0o000oo on October 1, 2010 at 12:05pm
THANKS FOR THE ADD, VERY HELPFUL!!!

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service