thetommyk
01-27-2005, 04:07 PM
my problem: :)
i got a file with al lot of positions calculated with some c++ program
now i need lots (variable) of Null Objects that jump to the positions i calculated
each frame one NullObj jumps to its position
what already works is the reading of the file, the positioning of the generated objects and the adding of the setting of the "HV Custom Object" to each Null
what i need now is the scriptpart that makes me set specific values in the hypervoxel panel of each object and make them active
what also not works is the activation of the HyperVoxel at Volumetrics in the Effectspanel
thanks in advance
Thomas
generic
{
stable = File("c:/stable.txt");
reqbegin("Menu");
c2 = ctlnumber("Start X:",50);
c3 = ctlnumber("Start Y:",50);
c4 = ctlnumber("Start Z:",50);
return if !reqpost();
SX = getvalue(c2);
SY = getvalue(c3);
SZ = getvalue(c4);
reqend();
ClearScene();
FramesPerSecond(1);
Anzahl = 100; //stable.linecount(); //+1?
Volumetrics();
ApplyServer("MasterHandler",".HyperVoxels");
Volumetrics();
for(i = 0; i < Anzahl; i++)
{
AddNull("Position_" + i);
SelectByName("Position_" + i);
GoToFrame(0);
MoveTool();
AddPosition(SX,SY,SZ);
stable.line(i+1);
GoToFrame(i);
AddPosition(SX,SY,SZ);
GoToFrame(i+1);
AddPosition(stable.readVector());
ApplyServer("CustomObjHandler","HyperVoxelsDrawing");
RedrawNow();
}
NextItem();
CenterItem();
CenterItem();
EditCameras();
MotionOptions();
TargetItem("Position_0");
HController(2);
PController(2);
MotionOptions();
}
i got a file with al lot of positions calculated with some c++ program
now i need lots (variable) of Null Objects that jump to the positions i calculated
each frame one NullObj jumps to its position
what already works is the reading of the file, the positioning of the generated objects and the adding of the setting of the "HV Custom Object" to each Null
what i need now is the scriptpart that makes me set specific values in the hypervoxel panel of each object and make them active
what also not works is the activation of the HyperVoxel at Volumetrics in the Effectspanel
thanks in advance
Thomas
generic
{
stable = File("c:/stable.txt");
reqbegin("Menu");
c2 = ctlnumber("Start X:",50);
c3 = ctlnumber("Start Y:",50);
c4 = ctlnumber("Start Z:",50);
return if !reqpost();
SX = getvalue(c2);
SY = getvalue(c3);
SZ = getvalue(c4);
reqend();
ClearScene();
FramesPerSecond(1);
Anzahl = 100; //stable.linecount(); //+1?
Volumetrics();
ApplyServer("MasterHandler",".HyperVoxels");
Volumetrics();
for(i = 0; i < Anzahl; i++)
{
AddNull("Position_" + i);
SelectByName("Position_" + i);
GoToFrame(0);
MoveTool();
AddPosition(SX,SY,SZ);
stable.line(i+1);
GoToFrame(i);
AddPosition(SX,SY,SZ);
GoToFrame(i+1);
AddPosition(stable.readVector());
ApplyServer("CustomObjHandler","HyperVoxelsDrawing");
RedrawNow();
}
NextItem();
CenterItem();
CenterItem();
EditCameras();
MotionOptions();
TargetItem("Position_0");
HController(2);
PController(2);
MotionOptions();
}