PDA

View Full Version : The Channel names in the Texture layer



toro
06-04-2004, 03:28 AM
Hi!
I am trying to use L-script to set-up Texture Animation.
but I did not find the formal name of Channnels in TextureLayer.

I want to choose only arbitrary channels and to operate
an envelope of the texture position in the Texture layer.

Although some names were tried, each went wrong.
"Postion.Y", "TXLRPOSITION.Y"
"Surface.Earth.GlobeSurface.Color.TextureLayer.Posi tion.Y"(example)

Please tell me how to find it!

Thanks

toro
06-04-2004, 03:30 AM
//The following is the code I wrote //

generic
{
var test_value = 3;
var finished = 0 ; //flag
curTime = Scene().currenttime;

//-- make Object Agent ---//
meshObj = Mesh();
surfObj = (Surface(meshObj));
CurSurf = Surface(surfObj[1]);
texObj = CurSurf.getTexture(SURFCOLR);

//-- Channel group and Channel Object Agent ---//
texly_chg = texObj.getChannelGroup();
ch_oa = ChannelGroup(texly_chg);
texlyer_channel = ch_oa.firstChannel();

//--It worked satisfactory so far....//

while(!finished)
{
//---- A problem is discovered here! ----//
if(texlyer_channel == "Position.Y")
{
texlyer_channel.createKey(curTime, test_value);
finished = true;
}
else
{
texlyer_channel = ch_oa.nextChannel();
}
}
}