Grasshopper

algorithmic modeling for Rhino

Hi Everyone

I am wanting to write a VBScript component that runs Rhino's text command but fills in the data from GH for Start point, Font, Height, as well as Assigning new layer for txt that been created and final though i realise it would need to be writen at the start a boolean toogle that could say if the script should run. but i don't really where to start.

I have been looking at the patch VBScipt posted on the forum but realise i think i need the baking of the point and the text command as a loop, so each point only gets one line of numbers not the whole list.

As when numbers are in Rhino I propose to use mitchs script to convert the text to single crvs which seems to work great. Thus i do need the Text data created in Rhino with the VBScript to return into Grasshopper

Hope this all makes sense
Thanks in Advance

Matt

P.s Currently Still Working in GH6.59 in office as not been able to update rhino yet.

Views: 302

Replies to This Discussion

Hi Damien

Thats a great start I have worked out how to set inputs for everything but ByVal doc As MRhinoDoc as this is not an option in the list of inputs, but is in the list of Region members above so i am guessing it not an input? Should i be using the RC as the Boolean Options that decide if the script should be Activated on not or have i understood that wrong and finally.

Would i be wanting to Create and Set current the Layer (Name Comming from GH input) that i want the text written on in another Sub before this one starts then call this sub then call the subs one after another.

Thanks Again
Matt
You've seen Guilio's stuff too, right? Here it is via me...

http://fancywires.com/?p=499
Yeah I had seen that on my travels Taz.. Good Work but as usual i seemed to be able to break it as need to input a list of contour heights that are placed at set points.

I think i have some ideas of how to fix VbScript I have been editing that Damein posted but if you have any idea about the question i posted above that would be great too.

Thanks
Matt
Sorted Out Code

See This Blog Post... http://www.grasshopper3d.com/profiles/blogs/bake-text-to-layer

Thanks Again Matt

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service