[no subject]

------_=_NextPart_001_01C8B0C2.5D357975
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial size=3D2>Given =
a polygon, how=20
do you determine (from scripting)&nbsp;which material is active for that =

polygon?</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial size=3D2>I'm =
writing a tool=20
to apply a custom operator to selected polygons.&nbsp; One of the steps =
is to=20
create a new polygon cluster and apply a copy of the material which =
originated=20
on the selected polygons so I can retain the same look but isolate some =
features=20
for manipulation by the operator.&nbsp; Problem is that I cannot =
determine which=20
material belongs to the polygons.</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2>Example:</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial size=3D2>Our =
modeler created=20
a character and applied a new material with a lambert shader =
attached.&nbsp;=20
This material covers the entire character and is dull grey.&nbsp; Later, =
one of=20
our riggers created 50 polygon clusters, each with it's own local=20
material.&nbsp; So now the character has 51 materials total, 50 which =
are mapped=20
to polygons via the clusters.&nbsp; The&nbsp;original material =
(lambert)&nbsp;is=20
a zombie material because it's not mapped to any polygons as&nbsp;the =
clusters=20
took all it's polygons away.</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial size=3D2>From =
scripting, if I=20
query the object which material is current, XSI returns the first =
applied=20
material (lambert).&nbsp; Obviously this doesn't do me any good.&nbsp; =
Other=20
than doing the famous cluster traversal, how can I find out which =
material(s)=20
are applied to selected polygon(s)?</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2>thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2>Matt</FONT></SPAN></DIV>
<DIV><SPAN class=3D650160604-08052008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C8B0C2.5D357975--
---
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.