Announcement

Collapse
No announcement yet.

Need a quick script

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

  • Need a quick script

    What do I type to quickly set every material in my scene (all Max Standard materials) to 100% self-illumination?

    Thanks.
    - Geoff

  • #2
    Try this:
    Code:
    for m in scenematerials where classof m == Standardmaterial do m.selfIllumAmount = 100

    Comment


    • #3
      Cool, thanks! That's very different than I thought it was going to be. :/
      - Geoff

      Comment


      • #4
        You are welcome
        Doesn't work as you expected? what where you trying to do?

        Comment


        • #5
          Yep, it works great.

          I have a VRML world (yes, there are still people who use VRML) with all baked 100% self-illuminated materials. And, for reasons I can't figure out, most (but not all) of my 150 or so objects weren't exporting. I got around it by exporting the scene to FBX and re-importing, first. But doing that zeroed the self-illumination of all my materials.
          - Geoff

          Comment


          • #6
            Cool

            (and 10)

            Comment

            Working...
            X