UV Mapping from Ruby
-
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
. -
Don't think anyone made any UV mapping APIs.
Can you illustrate with some images what you are looking to do?
-
Thanks for the reply thomthom. First here's a model of a table with a fitted, zipper-on cover:

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

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
. -
You need an API for UVUnwrapping then... hm... Maybe something WrapR might consider? (pinging Rich)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement