PDA

View Full Version : Maxscript:Volume Select selection


Reality3D
12-13-2002, 06:45 PM
I was searching how to get the faces that this modifier selects. Any tips ?

LFShade
12-13-2002, 11:52 PM
just use $.selectedFaces. The result is a FaceSelection value. If there are other modifiers above the Vol. Select that change the face selection, you'll want to make sure to make the Vol. Select the active modifier by calling modPanel.SetCurrentObject() (see online help for further info on how to use this function).

Reality3D
12-14-2002, 12:57 AM
Ah, I thought i tried that without luck. Tried again and it worked. But yes, i was right, it didn't work with me because it only works with an editable mesh base object, else:
$.selectedfaces
#faces(-- Runtime error: Mesh operation on non-mesh: PolyMesh

Search a poly select function or similar and none found. Any tip?

LFShade
12-14-2002, 01:11 AM
You're right. And the EPoly version (polyop.getFaceSelection $) returns an empty selection when the Vol. Select modifier is active:hmm:

Quickest and cheapest workaround I can think of at the moment is to put a Mesh Select modifier just before the Vol. Select on the stack. Then the method from my earlier post will work on an EPoly base object. There's probably another way, but I'll need to dig for it.

Cheers!

Reality3D
12-14-2002, 01:15 AM
Well, that's life. Thanks !

CGTalk Moderation
01-14-2006, 12:00 AM
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.