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-12       - By Guillaume Laforge

 Back
Reply:     1     2     3  

Thanks for your help !
And the element(ClusterProperty<file:///C:/Softimage/XSI_4.2/Doc/XSISDK
/reference/ClusterProperty.html#wp521611>)
page from the doc. is instructive for me :-)
Cheers,
Guillaume Laforge
CG artist
www.vol2nuit.fr <http://www.vol2nuit.fr>

2005/5/11, javier <javier.vdp@(protected)>:
>
> 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
>

<div>Thanks for your help !</div>
<div>And the element(<a href="file:///C:/Softimage/XSI_4.2/Doc/XSISDK/reference
/ClusterProperty.html#wp521611">ClusterProperty</a>) page from the doc. is&nbsp
;instructive for me :-)<br>&nbsp;</div>
<div>Cheers,</div>
<div>&nbsp;</div>
<div>Guillaume Laforge</div>
<div>CG artist</div>
<div><a href="http://www.vol2nuit.fr">www.vol2nuit.fr</a></div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">2005/5/11, javier &lt;<a href="mailto:javier.vdp
@(protected)">javier.vdp@(protected)</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">Guillaume<br>first of all&nbsp;&nbsp;
'InvertSelection' does not return a collection so thats<br>why your 'count'
fails.
<br><br>one method off the top of my head that you could use to create a<br
>subcomponent collection for polys not belonging to your cluster would<br>be<br>
<br>oSel = selection(0)<br>var matte = oSel.ActivePrimitive.Geometry.Clusters
(&quot;matte&quot;)<br>var polys = oSel.ActivePrimitive.Geometry.Polygons<br
>var matelems = matte.Elements<br>var xpolys = new ActiveXObject(&quot;XSI
.Collection&quot;)<br>xpolys.additems(polys)<br>//logmessage (xpolys.count
)<br>for (i=matelems.count-1 (See http://unt-1.ora-code.com);i&gt;=0;i--){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; logmessage(matelems(i))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xpolys
.remove(xpolys(matelems(i)))<br>}<br>//logmessage (xpolys.count);<br>//selectobj
(xpolys)<br>//xpolys contains all the polys that are not part of the cluster
<br><br>i hope this helps, im sure that you could get at the polys somehow<br
>else, but this should work<br>javier<br><br>---<br>Unsubscribe? Mail <a href=
"mailto:Majordomo@(protected)">Majordomo@(protected)</a> with the following
text in body:
<br>unsubscribe xsi<br></blockquote></div><br>