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