KeeperOfTheGood
Technical User
Hey oh
Ok, I hope someone here can help. Searches and the like haven't. This question has to have been asked befor! Links or a direct answer, either would be greatly appreciated.
I am running a program called Apophysis, from It is a fractal creating program written in Delphi and allows script writting in Delphi.
I need to be able to creat directories. I have found the command for deleting directories, but not one for making them.
Following is a script that comes with the program, given here to exemplefy. The criticle line in it is Renderer.Filename :='c:\renders\' + Flame.Name + '.png'; If the directory does not already exist, the script hangs. I want to mod this to first either query the user or use the flame name to creat a directry before saving to that directory. To query or to creat a string with a name isn't any good when I don't know the code to make the directory.
Thank you in advance.
{ Renders all of the flames in a
selected parameter file to disk.
Set the render settings to taste }
Renderer.Width := 320;
Renderer.Height := 240;
{ Comment out the following line to
render the currently loaded file }
SetFlameFile(GetFilename);
for i := 0 to FileCount do
begin
LoadFlame(i);
Flame.SampleDensity := 10;
Flame.Oversample := 2;
Flame.FilterRadius := 0.4;
{ Change the folder and extension if neccessary }
Renderer.Filename :='c:\renders\' + Flame.Name + '.png';
SetRenderBounds;
Render;
end;
UpdateFlame := False;
Ok, I hope someone here can help. Searches and the like haven't. This question has to have been asked befor! Links or a direct answer, either would be greatly appreciated.
I am running a program called Apophysis, from It is a fractal creating program written in Delphi and allows script writting in Delphi.
I need to be able to creat directories. I have found the command for deleting directories, but not one for making them.
Following is a script that comes with the program, given here to exemplefy. The criticle line in it is Renderer.Filename :='c:\renders\' + Flame.Name + '.png'; If the directory does not already exist, the script hangs. I want to mod this to first either query the user or use the flame name to creat a directry before saving to that directory. To query or to creat a string with a name isn't any good when I don't know the code to make the directory.
Thank you in advance.
{ Renders all of the flames in a
selected parameter file to disk.
Set the render settings to taste }
Renderer.Width := 320;
Renderer.Height := 240;
{ Comment out the following line to
render the currently loaded file }
SetFlameFile(GetFilename);
for i := 0 to FileCount do
begin
LoadFlame(i);
Flame.SampleDensity := 10;
Flame.Oversample := 2;
Flame.FilterRadius := 0.4;
{ Change the folder and extension if neccessary }
Renderer.Filename :='c:\renders\' + Flame.Name + '.png';
SetRenderBounds;
Render;
end;
UpdateFlame := False;