View Full Version : Object Channels
Marley 08-31-2002, 01:31 PM Hello
Is there a way to define a large number of objects to each have an individual Object Channel (for G-Buffer extraction)? It doesn't really matter which object is assigned to which Channel ... I just want them all to be different (and with a large number of objects I don't want to set up a Channel for each object myself!)
thanks again!
|
|
Originally posted by Marley
Hello
Is there a way to define a large number of objects to each have an individual Object Channel (for G-Buffer extraction)? It doesn't really matter which object is assigned to which Channel ... I just want them all to be different (and with a large number of objects I don't want to set up a Channel for each object myself!)
thanks again!
1. Select your objects.
2. Evaluate in the Listener or a New Script:
for i = 1 to selection.count do selection[i].gBufferChannel = i
This will assign a unique GBuffer ID to the selected objects, supporting up to 65535 objects.
(GBuffer cannot be a number larger than 64K so in the unlikely event of more objects, the last ones will all have the same 65535 ID).
boomji
08-31-2002, 03:06 PM
thanks bobo...best way to learn scripting...get bobo to help out on a forum ;)
on a similar note why dont you come out with a book or something teaching c/c++ in a max/maya related way...i'm sure many would buy it(maya because it's syntax is c related to the t !!!).
cm'on dude give it a shot :thumbsup:
b
Marley
08-31-2002, 03:11 PM
ok great ... thanks for that !!!
As soon I finish this project I'll definetly start with max coding myself ... so that I can at least handle things like this myself!
thanks
CGTalk Moderation
01-13-2006, 03:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.