Announcement

Collapse
No announcement yet.

Multimatte Generator Script

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

  • Multimatte Generator Script

    Like a lot of users I often setup up a MultiMatte render element for a particular object(s) so I can isolate it in post. I thought I'd write a script to automate some of it - mainly assigning the object ID or Mat ID and setting up the corresponding render elements. Along with this I threw in some option to check for existing ID's as well treating instances together and just treating the entire selection as one group (so all objects get the same ID). It will name the render element based on the provided prefix as well as the three objects or materials selected

    Click image for larger version

Name:	MME.jpg
Views:	1
Size:	30.7 KB
ID:	869513

    It's not exhaustively tested and the code is kind of jumbled together so use it at your own risk but let me know if it's helpful (it's worked fine for me). If you find anything broken on it let me know and I'll try to get it cleared up.

    I borrowed some functions code from the BlurScript Pack's MaterialStuffer (available at Neil Blevins' website http://www.neilblevins.com/blurscripts/blurscripts.htm) since I use a lot of those functions to sort through the instances, etc. You don't need to install it (I think) but I thought I'd mention where it came from.

    To install, run the script and then under Customize User Interface-->dPict Tools-->MultiMatte Generator

    Enjoy.
    Attached Files
    Last edited by dlparisi; 26-02-2010, 10:19 AM. Reason: Revise no need for BSLib.ms and fixed a glitch in the script on instances of with only one instance (i.e., 2 objects)
    www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

  • #2
    Thanks very much for sharing this.

    b
    Brett Simms

    www.heavyartillery.com
    e: brett@heavyartillery.com

    Comment


    • #3
      im getting an error - although i installed the blur scripts pack and it seems to be working nicely, the multimatte script still says on installation that it cant find the bslib.ms

      Comment


      • #4
        Originally posted by frostfx View Post
        im getting an error - although i installed the blur scripts pack and it seems to be working nicely, the multimatte script still says on installation that it cant find the bslib.ms


        I think BSLib.ms needs to be in a folder that's on a known path - so it can't be buried in ...\scripts\BlurScripts , just put in ...\scripts\.
        www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

        Comment


        • #5
          that did the trick! and just did a quick test run - works like a charm and does exactly what i need. thank you very much dlparisi.

          Comment


          • #6
            Are you using the blurscripts for Max 7? I don't see a newer version.
            LunarStudio Architectural Renderings
            HDRSource HDR & sIBL Libraries
            Lunarlog - LunarStudio and HDRSource Blog

            Comment


            • #7
              yep. i used the max7 versions.

              Comment


              • #8
                I double checked the need for BSLib.ms at all and it seems that it works just fine without it (let me know though). I had it in there originally while I was building it but I think as I worked on the script I ended up not needing any of the functions (I just copied what I needed from the MaterialStuffer script) but never took out the "include". I also fixed a small glitch where instances with only 1 instance copy (i.e., 2 objects total) where not properly indexed. I've updated the script attachment above with these changes.
                www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

                Comment


                • #9
                  Very cool, this exact script was on the todo list.
                  Many thanks.

                  Comment


                  • #10
                    Thanks for the script. Been looking into working with object ids, but they came out too jaggy.

                    This seems to be just what I need

                    Comment

                    Working...
                    X