Notifications
Clear all

[Closed] face selection in a Edit_Poly Modifier

Hi Guys,

Really quick one. I am trying to write some little modelling tools for manipulating slices etc. The alignment I can do using transformation matrices etc, but if I want to align the slice to a face I need to be able to query the current face selection of that object.

If it is a collapsed editable poly then “polyOp.getFaceSelection obj” works great… Is it also possible to get the face selection on an edit_poly modifier? If it is I am sure it is simple, but the documentation has confused the hell out of me!

If not, it would be great to be put out of my misery!

Thanks guys

Rich

6 Replies

 [b][b]polyop[/b][/b].[b][b]getFaceSelection[/b][/b] obj
 

theBitArray = yourEPolyModifier.GetSelection #Face

If the same modifier is instanced across multiple nodes, you can also supply a node: keyword to tell it WHICH of them you mean because the selection can be different on each node…

Was getting confused and actually was overlooking a lot of the edit_poly modifier help, which does not rank amongst the cleverest moments of my life.

Thanks for setting me straight

Rich

Are you using the Max 2008 Help or earlier?

We are locked into Max 9 for the immediate future, and thus the Max9 help, although we are going to try and make the step to 2008 as soon as possible.

As far as me getting confused is concerned, I have always found the maxscript help (and your DVD) very useful indeed. I think it is just a combination of a few too many hours, and too little sleep at the moment!

Thanks again

Rich

I would suggest downloading the Max 2008 MAXScript Reference. Everything that is new (and thus unusable for you) is clearly marked as New In 2008, but the organization and navigation are MUCH improved…