Re: convert polygon selection into UV samples

Date : Mon, 20 Aug 2007 17:11:16 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: convert polygon selection into UV samples
Something like this? With the index numbers returned in aSamples you can tackle the UV property.

Cheers,

   -André


var oSubComponent = Selection(0).SubComponent; if(oSubComponent.Type == "polySubComponent"){ var aSamples = new Array(); var eFacets = new Enumerator(oSubComponent.ComponentCollection); while(!eFacets.atEnd()){ aSamples = aSamples.concat(eFacets.item().Samples.IndexArray.toArray()); eFacets.moveNext(); } }

for(var i=0; i<aSamples.length; i++){
 LogMessage(aSamples[i]);
}


Andreas Bystrom wrote:
hey, does anyone have a script that can convert a poly-selection into
UV samples? I know you can just select polys and it will automatically
highlight corresponding samples in the TE but this is for a script
that needs an actual UV-selection to work properly....

--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.