Adding Material IDs to selected Polys

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 10 October 2003   #1
Adding Material IDs to selected Polys

Hi there,
I wonder if there is a command to change the Material ID of some selected polygons. There is a "setFaceMatID"-command to change the Material ID of faces, but it doesn´t work for editable poly objects and I won´t convert the object to editable mesh. Any idea?
__________________
The user is too busy at the moment. Please try again later.
 
Old 10 October 2003   #2
From the MXS online help:

"polyOp.setFaceMatID <Poly poly> <facelist> <int MatID>"

So if you wanted to assign ID 1 to the selected faces of the selected EPoly object, you would do something like this:
[color=orange-red]
sel_faces = polyOp.getFaceSelection $
polyOp.setFaceMatID $ sel_faces 1
[/color]

RH
__________________
Got Maxscript?
RHTools
 
Old 10 October 2003   #3
Aha, so the secret word was "polyop"
Now it works. Thank you very much.
__________________
The user is too busy at the moment. Please try again later.
 
Old 01 January 2006   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:55 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.