Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Scripting : how to move samples from a polygon selection ?

Scripting : how to move samples from a polygon selection ?

2005-05-11       - By Javier

 Back
Reply:     1     2     3  

Guillaume
first of all  'InvertSelection' does not return a collection so thats
why your 'count' fails.

one method off the top of my head that you could use to create a
subcomponent collection for polys not belonging to your cluster would
be

oSel = selection(0)
var matte = oSel.ActivePrimitive.Geometry.Clusters("matte")
var polys = oSel.ActivePrimitive.Geometry.Polygons
var matelems = matte.Elements
var xpolys = new ActiveXObject("XSI.Collection")
xpolys.additems(polys)
//logmessage (xpolys.count)
for (i=matelems.count-1 (See http://unt-1.ora-code.com);i>=0;i--){
  logmessage(matelems(i))
  xpolys.remove(xpolys(matelems(i)))
}
//logmessage (xpolys.count);
//selectobj(xpolys)
//xpolys contains all the polys that are not part of the cluster

i hope this helps, im sure that you could get at the polys somehow
else, but this should work
javier

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi