Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Accessing UV Islands from scripting languages
  RSS 2.0 ATOM  

Accessing UV Islands from scripting languages
Rate this thread
 
57891
 
Permlink of this thread  
avatar
  • draetsch
  • Posted: 11 July 2011 01:43 AM
  • Total Posts: 7
  • Joined: 25 September 2006 03:24 AM

Hi,

is there a way in SI to get access to either enumerations of UV Islands or at least the ability to get connected uv points?
I am trying to program a UV layout script and this must iterate over UV Islands. It is not an option to use polygon islands, since I often have one single mesh with many UV islands.

Help is very appreciated.

Thanks.



Replies: 0
avatar

What script are you building ?



Replies: 0
avatar
  • draetsch
  • Posted: 11 July 2011 10:10 PM

Hi FalconCrest,

I am trying to build a UV Layout Script.



Replies: 0
avatar

What will it do, sorry I wasn’t specific :)



Replies: 0
avatar
  • draetsch
  • Posted: 12 July 2011 09:34 PM

Hi,

I have a bunch of UV Islands that need to be transformed so that they lie in the 0-1 space of the UV space in a way that represents the size of their polygon counterpart.
The UV Islands are already there, so I need to grab each island and transform it (and all the samples in it). The problem is that there is no decent way to get hold of the island information of samples. I have the neighbor property on vertices but not on samples.

If possible I would build it as an ICE operator, but I assume this is a very difficult thing to do.

In the end it suffers from not having the ability to get a list (array, datastructure, ...) that holds information about sample (uv) neighbors (or islands).



Replies: 0
avatar

That is the same thing, that I was inquiring about a little while ago.  Except I wanted to get the UV islands to stamp out each island for texture painting, have you thought of adding this feature ?



Replies: 0