PDA

View Full Version : how to apply the set command propperly?


thetommyk
01-26-2005, 05:17 PM
Hi guys.

I need some help. This is my first attempt to code Lscript. I want to solve the following problem.

... solved it ... new problem is posted ;)

thetommyk
01-27-2005, 11:30 AM
i came so far that i can create all the null objects and get them the values out of the file ... now i want to add a volumetric properties ... i want each object been activated in the hypervoxcel menu with specifict values ... how can i do that?

thanks in advance
Thomas

generic
{

stable = File("c:/stable.txt");
//Anzahl = 0;
//i = 0;

reqbegin("Menu");
//c1 = ctlnumber("Anzahl:",10);
c2 = ctlnumber("Start X:",50);
c3 = ctlnumber("Start Y:",50);
c4 = ctlnumber("Start Z:",50);
return if !reqpost();
//Anzahl = getvalue(c1);
SX = getvalue(c2);
SY = getvalue(c3);
SZ = getvalue(c4);
reqend();

//ClearScene();

FramesPerSecond(1);

//info(stable.linecount);
Anzahl = 100; //stable.linecount(); //+1?

Volumetrics();
ApplyServer("MasterHandler",".HyperVoxels");
Volumetrics();

for(i = 0; i < Anzahl; i++)
{
//Objekt erzeugen und ersten Keyframe setzen
AddNull("Position_" + i);
SelectByName("Position_" + i);
GoToFrame(0);
MoveTool();
AddPosition(SX,SY,SZ);
//Objekt bewegen und Key setzen
stable.line(i+1);
GoToFrame(i);
AddPosition(SX,SY,SZ);
GoToFrame(i+1);
AddPosition(stable.readVector());
ApplyServer("CustomObjHandler","HyperVoxelsDrawing");
//ma.setKeyCurve((i+1),CHAN_STEPPED);
}

NextItem();
CenterItem();
CenterItem();
}