Automatic MaterialID Framebuffer setup

Plugins linking to this thread: (hide)

MaterialID SetupAuthor: Nassos Yiannopoulos
Automatically setups an additional MaterialID framebuffer to the current pass and modifies all the applied materials to store a unique color in that framebuffer.

local backup: Make_MaterialID_Framebuffer.rar

nassosy
Posts: 81
Joined: 02 Oct 2009, 23:50
Location: Greece

Automatic MaterialID Framebuffer setup

Post by nassosy » 25 Oct 2009, 17:10

Automatically setups an additional MaterialID framebuffer
to the current pass
and modifies all the applied materials to store a unique color
in that framebuffer.
If you don't like the colors, re-run the script
to make it choose new ones (randomly).

For you convenience, drag it on a toolbar to make a button.

Use it at your own risk.

A local copy can be found here:
http://www.si-community.com/download/sc ... buffer.rar
You do not have the required permissions to view the files attached to this post.

rasskass
Posts: 12
Joined: 02 Apr 2010, 10:01

Re: Automatic MaterialID Framebuffer setup

Post by rasskass » 19 Apr 2010, 11:13

Hi,

Could you explain how to use it? Im completly new to softimage and am slowly learning. But need this function desperatly!!!


Thanks

User avatar
Hirazi Blue
Administrator
Posts: 4918
Joined: 04 Jun 2009, 12:15

Re: Automatic MaterialID Framebuffer setup

Post by Hirazi Blue » 19 Apr 2010, 11:28

Standard procedure for scripts:

View > Scripting > Script Editor
Set the language to "VB Script" (you can tell from the file extension "vbs")
In the file menu of the script editor, goto "File > Open"
Load the script
Press F5 to run or In the file menu of the script editor use "Edit > Run"

All this info can be found in the SDKDocs (not the XSIDocs):
Script Development > Using the Script Editor

You can use the icons in the script editor also,
but these I can't explain in written form :D
...

nassosy
Posts: 81
Joined: 02 Oct 2009, 23:50
Location: Greece

Re: Automatic MaterialID Framebuffer setup

Post by nassosy » 19 Apr 2010, 11:45

Uncompress the file in a folder (for ex. ".....\Softimage_XXXX\Data\Scripts\")
drag-n-drop the file onto the XSI Shelf (View->Optional Panels->Main Shelf)
to create a button (VB Script)
make or load a scene with objects that have different materials
press the button you previously created,
render,
the MaterialID tiff file is located at "[Scene]/[Pass]_[Framebuffer]"

pluMmet
Posts: 217
Joined: 18 Jan 2011, 18:37
Skype: bigcuberight

Re: Automatic MaterialID Framebuffer setup

Post by pluMmet » 30 Jul 2013, 16:12

Dang, not working in 2013. Any other way?