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

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

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
Attachments
Make MaterialID Framebuffer.rar
(1.53 KiB) Downloaded 454 times

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: 5107
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
Stay safe, sane & healthy!

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

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests