Page 1 of 1
Automatic MaterialID Framebuffer setup
Posted: 25 Oct 2009, 17:10
by nassosy
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
Re: Automatic MaterialID Framebuffer setup
Posted: 19 Apr 2010, 11:13
by rasskass
Hi,
Could you explain how to use it? Im completly new to softimage and am slowly learning. But need this function desperatly!!!
Thanks
Re: Automatic MaterialID Framebuffer setup
Posted: 19 Apr 2010, 11:28
by Hirazi Blue
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
Re: Automatic MaterialID Framebuffer setup
Posted: 19 Apr 2010, 11:45
by nassosy
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]"
Re: Automatic MaterialID Framebuffer setup
Posted: 30 Jul 2013, 16:12
by pluMmet
Dang, not working in 2013. Any other way?