Announcement

Collapse
No announcement yet.

Max Script question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Max Script question

    I'm trying to select any particular object, go into subobject mode, select elemet, and highlight all the faces of that object and turn to a particular Material ID. I've gotten pretty close but in the max script window it assigns id's to each polygon which I do not want. I just want to always tell it to select all polygons. Does anyone have any thought on this? Thanks!

  • #2
    Re: Max Script question

    Originally posted by bojo5150
    I'm trying to select any particular object, go into subobject mode, select elemet, and highlight all the faces of that object and turn to a particular Material ID. I've gotten pretty close but in the max script window it assigns id's to each polygon which I do not want. I just want to always tell it to select all polygons. Does anyone have any thought on this? Thanks!
    Sorry if I'm stating the obvious here, but have you looked at the material modifier? From your description it looks like you want to select all faces of an object and change their mat ID... Mat modifier should work just fine for that, and if you want to collapse everything afterwards you could do that too...
    Christopher Grant
    Director of Visualization, HMC Architects
    Portfolio, ChristopherGrant.com

    Comment


    • #3
      No, what I'm doing is trying to automate my rendering process. We design our buildings in ArchiCAD and export them out as a 3DS file. So far I've mapped the 3DS file to import, delete all lights and cameras, (from archicad) place new lights and cameras, setup all typical VRay settings, convert all geometry to editible poly, rename all objects, & apply UVW coordinates. All I have left to do is apply the material. I use a multisub material with our all of our typical materials in it because I use the VRMesh format to drop these into larger scenes later on. So what I need to do is have Max select each object independently, select the subobject "element" and select all the polygons. Then apply the proper material ID to correspond to the object name and Id from the multsub material.

      Comment


      • #4
        why don't you just break up the multi-sub material - and apply single materials to whole objects?
        www.studio2a.co

        Comment


        • #5
          Because I use all of my houses in large animated scene by placing them as proxy's

          Comment


          • #6
            Grant, I actually never new there was a material modifer. I always changed the ID in the poly or mesh. Your right it worked perfect! thanks

            Comment

            Working...
            X