It is currently 03 Sep 2010, 01:00

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Automatic MaterialID Framebuffer setup
PostPosted: 25 Oct 2009, 18:10 
Offline

Joined: 02 Oct 2009, 23:50
Posts: 71
Location: Greece
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/scripts/Make_MaterialID_Framebuffer.rar


Attachments:
Make MaterialID Framebuffer.rar [1.53 KiB]
Downloaded 86 times
Top
 Profile  
 
 Post subject: Re: Automatic MaterialID Framebuffer setup
PostPosted: 19 Apr 2010, 11:13 
Offline

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

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


Thanks


Top
 Profile  
 
 Post subject: Re: Automatic MaterialID Framebuffer setup
PostPosted: 19 Apr 2010, 11:28 
Offline
Moderator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 1069
Location: Maastricht, NL
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

_________________
We're off to see the wizard, the wonderful wizard of Oz...


Top
 Profile  
 
 Post subject: Re: Automatic MaterialID Framebuffer setup
PostPosted: 19 Apr 2010, 11:45 
Offline

Joined: 02 Oct 2009, 23:50
Posts: 71
Location: Greece
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]"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group