Thanks for the post back Snoelk I meant to update this thread to say that I solved the issue I was having. There were a couple of things wrong with my script: * When you give a number to the Edit_Poly.selectByMaterialID property it has to be one less than that of the MaterialID you really want. So if your after MatID 2…
Cool stuff, Snoelk. Out of interest, why do you zero the local bitArrays at the end of the script? Surely since they're local they'll be discarded once that function ends? Also any reason why you declare the bitarrays explicitly empty beforehand, instead of just doing:local varfacelist1 = polyOp.getFaceSelection objtosel…
Hello, I'm quite new to Maxscript and I've been trying to write a simple function that will return true or false if any faces have a specified MaterialID applied to them. I got it working but only by collapsing the object into and editable_poly or editable_mesh. Ideally I would like to be able to add a modifer to the top…
bitarray are pretty cool for some nice operation. so you dont have to run over a set of faces, edges or vertices. here a nice example to get a outline of a current faceselection works pretty fast :) function FaceSelection_Outline objtosel = ( local varfacelist1 = #{} local varfacelist2 = #{} local varedgearray1 = #{} local…