Announcement

Collapse
No announcement yet.

Maxscript help - Show shaded material in viewport

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

  • Maxscript help - Show shaded material in viewport

    Hi all

    Could somebody please help me with some maxscript code to "Show Shaded Material in viewport" for all materials in the scene?
    Kind Regards,
    Morne

  • #2
    Here you go...
    Code:
    for mat in sceneMaterials where isProperty mat #showInViewport do mat.showInViewport = true
    Dan Brew

    Comment


    • #3
      thanks Dan!
      Kind Regards,
      Morne

      Comment


      • #4
        You're welcome.
        Dan Brew

        Comment


        • #5
          How can I modify it so that it also goes into multisub materials?
          Kind Regards,
          Morne

          Comment


          • #6
            There's a script for this on scriptspot. let me dig it out
            Alex York
            Founder of Atelier York - Bespoke Architectural Visualisation
            www.atelieryork.co.uk

            Comment


            • #7
              Originally posted by alexyork View Post
              There's a script for this on scriptspot. let me dig it out
              http://www.scriptspot.com/3ds-max/sc...ort-maps-onoff

              That's the one.
              Alex York
              Founder of Atelier York - Bespoke Architectural Visualisation
              www.atelieryork.co.uk

              Comment


              • #8
                Thanks, but turns out the one from Dan DOES actually work with multisub mats. I was just in the wrong window
                Kind Regards,
                Morne

                Comment


                • #9
                  This should get all materials inside MSOs, VRayOverride etc...
                  Code:
                  (
                  	for c in material.classes where c.creatable == true do
                  	(
                  		for mat in getClassInstances c where isProperty mat #showInViewport do mat.showInViewport = true
                  	)
                  )
                  Dan Brew

                  Comment

                  Working...
                  X