PDA

View Full Version : Per-face data -- Can I use it?


sebjf
06-03-2011, 01:26 PM
Hello,

I want to export OBJs which respect poly groups in order to support Daz/Poser rigging systems. Since I couldn't find any poly grouping support in Max or my favourite (gw::obj) obj exporter I decided to write a grouping tool and exporter in MaxScript.

I have completed my exporter but now come to storing faces for each group. I saw that this thread [http://forums.cgsociety.org/showthread.php?p=4864090#post4864090] mentions custom attributes, and a page about them on kxcad mentions something about face data channels.

What are face-data channels? Are they like a dictionary like the modifiers collection? How do I access them? Could I use them to store the group (just an integer or a string)?

PS. I did see this thread [http://forums.cgsociety.org/showthread.php?p=4194294#post4194294] but I cant find simpleFaceManager. Also, I would like to work as 'close to' TriMesh as possible as that is what my exporter operates on.

PPS. While I am asking, does anyone know what the requirements for a Key value for a System.Collections.Hashtable object are? I tried to pass in a scene object as a Key but it would not accept it (was not a System.Object).

Thanks!

PiXeL_MoNKeY
06-03-2011, 03:55 PM
You can find information on the simpleFaceManager in the 2012 Maxscript help here (http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-502104A4-2A6E-4FC9-A46E-CAFEB55CD03-672.htm). The interface was added in 3ds Max 9 so should be accessible using the interface inspector functions.

-Eric

sebjf
06-03-2011, 06:30 PM
Hi Eric,

I am just playing with it now in the listener and so far it seems perfect.

Thanks alot!

EDIT: I am wondering, what is an Index type? And what makes it different to an Integer type? (Sorry if this is a simple question but I only started learning MaxScript 4 days ago and am just getting the basics!)

Seb

CGTalk Moderation
06-03-2011, 06:30 PM
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.