Re: add buffer mixer

Date : Tue, 27 Mar 2007 14:25:58 -0500
To : XSI(at)Softimage.COM
From : Jeffrey Dates <jdates(at)kungfukoi.com>
Subject : Re: add buffer mixer
hmm.. works here.

Pablo Tufaro wrote:
Ok, good, so it was not me.....
 
First thanks, but I am getting an error in line 4 that the object doesn´t accept this property or method.
 
The same error as when I copied it from the video.
 
Sorry.
 
P.
 
 
----- Original Message -----
Sent: Tuesday, March 27, 2007 3:53 PM
Subject: Re: add buffer mixer

I'm not sure why that'd be funny.  *blush*  I'm sure each of you have stories of something similar.

I got this to work, but as Sam said, it was sketchy on large material libs. 
It wasn't obvious to me, but it's Jscript.

var sel = application.selection;
for  (i=0;i<sel.count;i++) {
logmessage(sel(i).fullname) ;
    var OldShader = sel(i).Shaders;
        logmessage (OldShader(0).name);
       
        SIApplyShaderToCnxPoint ("Texture\\Mixers\\Mix_8colors", sel(i) + ".surface","Buffers",true);
        SIConnectShaderToCnxPoint (OldShader(0), sel(i) + ".Buffers.base_color", false);
        SIConnectShaderToCnxPoint(sel(i) + ".Buffers", sel(i) + ".shadow", false);
        SIConnectShaderToCnxPoint(sel(i) + ".Buffers", sel(i) + ".Photon", false);
        for (j=1;j<7;j++) {
        SetValue(sel(i) + ".Buffers.inuse" + j, true, null) ;
        SetValue(sel(i) + ".Buffers.weight" + j +".red", 0, null);
        SetValue(sel(i) + ".Buffers.weight" + j +".green",0, null);
        SetValue(sel(i) + ".Buffers.weight" + j +".blue", 0, null);

        }
}




Pablo Tufaro wrote:
 
Hello list.
 
Sorry about this silly question but....
 
can someone post the "add buffer mixer" script, that softimage uses in the demo videos of the render channels?
 
I tried to find it, and also tried to copy it from the video ( yes I did that... do not laugh please :) but It doesn´t work.
 
Thanks in advance for the help.
 
Cheers
Pablo.
 

No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date: 3/26/2007 2:31 PM

No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date: 3/26/2007 2:31 PM

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.