sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Question about Static Text, thx!

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 610 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      antantantant
      last edited by

      The only way I found in Ruby to post text is Entities.add_text(text, pt)
      However, these texts will change their position when I rotate the scene cos they are fixed to some pt. So this is different from the original SU text tool which allows static text and that's exactly what I need.

      Can I get static text from Ruby script? Thanks!

      -Max

      1 Reply Last reply Reply Quote 0
      • A Offline
        AlexMozg
        last edited by

        It is done very simply:

        
        model = Sketchup.active_model
        note = model.add_note "Test", 0.1, 0.1
        
        

        http://groups.google.com/group/SketchUp-Plugins-Dev/web/Ruby-Model.html#add_note

        1 Reply Last reply Reply Quote 0
        • A Offline
          antantantant
          last edited by

          Thank you Alex.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement