sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    UV Mapping from Ruby

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 787 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.
    • J Offline
      jemiah
      last edited by

      Does anyone know of a good UV mapping plugin that has an API that can be accessed from the Sketchup Ruby API?

      I need to do some mapping of 2D images onto a complex 3D form. The 2D image is a template which will never change shape. After I do the mapping of the template once I want to be able to use additional 2D graphics which follow the template. My hope is to be able apply new graphics to the 3D form from a Ruby script.

      So has anyone seen a UV mapping plugins with Ruby API access?

      Thanks
      .

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Don't think anyone made any UV mapping APIs.

        Can you illustrate with some images what you are looking to do?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • J Offline
          jemiah
          last edited by

          Thanks for the reply thomthom. First here's a model of a table with a fitted, zipper-on cover:
          A model of a table.

          Here you see the 2D template that's used create the graphics on the table cover in real life:
          A table cover template.

          What I want to do is setup a scripted way of mapping the 2D image data in various template files onto the 3D model of the table. Once the alignment of the template file is done any other files would line up (if the graphics stay within the lines). The issue is that the model of the table cover isn't just 5 Face objects. As you can probably see its complex set of triangular Faces designed to mimic a fabric stretched over a table (they never change). I'm hoping to find a UV mapping tool that I can script the application of different template files. Ultimately I'd like to run the mapping from the command line so that given an input file of a template I could spit out Sketchup model with the template graphics applied.

          I have access to SketchupPro and Unity. I also have no problem programming in Ruby. I actually started writing code that would do this before I stopped myself and decided to check if there was a tool out there that already did it. What do you think? Pie-in-the-sky or possible?

          Thanks
          .

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            You need an API for UVUnwrapping then... hm... Maybe something WrapR might consider? (pinging Rich)

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            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