Forgot password?

Create an account!

Forum

« back

RhinoScript – Turning text into 3D object?

Messages

Please log in to write a message.

  • 6. Ziethriel (Jul 10, 2017 02.52):

    Made an account to say thanks, never would have thought to explode text :D

  • 5. awagner (Sep 06, 2008 16.14):

    I figured out a way. It's a kludge, but it works. I figured out using the gui that the explode function will work on annotation text objects, and that the results are selected. Thanks guys!


    ' Replace an annotation text object with its planar surface representation.
    Function text_to_curves(ByRef inText)
    If Not Rhino.IsText(inText) Then
    Rhino.MessageBeep
    Rhino.Print "text_to_curves: input object must be a text object!"
    End If

    Rhino.SelectObject(inText)
    Rhino.Command("Explode")
    text_to_curves = Rhino.SelectedObjects

    Rhino.DeleteObject(inText)
    Rhino.Print "text_to_curves: Done creating Curves from Text"
    End Function


    ' Replace an annotation text object with its planar surface representation.
    Function text_to_surfaces(ByRef inText)
    If Not Rhino.IsText(inText) Then
    Rhino.MessageBeep
    Rhino.Print "text_to_surfaces: input object must be a text object!"
    End If

    Dim curveArray : curveArray = text_to_curves(inText)

    text_to_surfaces = Rhino.AddPlanarSrf(curveArray)

    Rhino.DeleteObjects(curveArray)
    Rhino.Print "text_to_surface: Done creating Surface from Text"
    End Function

  • 4. awagner (Aug 12, 2008 21.47):

    Thanks guys, and sorry for the slow response... I don't seem to get any e-mail notification when there are replies. I'll try out the rhino.command textobject suggestion. Cheers, Drew

  • 3. Hanno (Aug 05, 2008 21.30):

    Is there a rhinoscript method to create text as geometry (i.e. curves or surfaces)? With addtext you can create text objects, but that's not what you want... maybe the most pragmatic way is to use the textobject command (with rhino.command).

    Hanno

  • 2. _aLinG_ (Aug 05, 2008 20.00):

    You could write a function that take some text, explode it and then extrude it.

    Best Regards.

  • 1. awagner (Aug 05, 2008 00.05):

    Hello-

    Anyone know of a way to generate 3D text from Rhinoscript? This is possible with the Rhino GUI, but I cannot figure out how to script it. I want to add version numbers to plastic piano keys I will be resin casting.

    Thanks!
    Drew (diykeyboard.org)

Recommend

Why are these buttons gray?