PDA

View Full Version : Quick ZScript question



CDEdwards
07-02-04, 10:33 AM
Is there a way to fill out the file name in the Open... Save... dialogs from a ZScript? Currently, my scripts stop and wait for user input before proceeding. I'd like to be able to process several files through ZScripts, like a batch process. Also, is there a way to create a 3DSphere, or other object through a ZScript to a particular size, say with a 2048 pixel diameter?

Thanks,
C.D.Edwards

Frenchy Pilou
07-02-04, 11:06 AM
Reccord a script
Just make a sphere
And look the text of the script for the syntax ;)
Pilou

Muvlo
07-02-04, 11:14 AM
To set the file name, use the command [FileNameSetNext,name-of-the-file].
To use this as a batch process, you might want to look at some of the other [File*] commands, like [FileNameMake...].

The exact position, rotation, and scale of an active 3D object can be set with [TransformSet,xpos,ypos,zpos,xscale,yscale,zscale,x rot,yrot,zrot].

Hope this helps! :)

CDEdwards
07-02-04, 12:28 PM
Pilou, the ZScript gave what looked like an encrypted message for a CanvasStroke ZScript command, I couldn't make out any particular numeric settings, but thankfully, I believe that Muvlo provided the info I was looking for. :)

BTW, is there a compilation of ZScript commands somewhere? That would be really helpful to me.

Thanks a bunch,
C.D.Edwards

Svengali
07-02-04, 02:24 PM
Hi CDEdwards,

drawsphere.txt (http://www.pixolator.com/ubb/uploaded_files/user_file-1088803037bud.txt)

This does what you want with a radius of 512 units.

As for a list of ZScript commands, you can print a hardcopy out by pressing ZScript:Export Commands.

GM770 points out that you can also read ZScript commands with sample code for most, by pressing ZScript:Cmd, but the listing is only in the ZScript window where you may scroll on screen up and down through the entire list.

Sven

Frenchy Pilou
07-02-04, 03:04 PM
AAAAAAAAAAArg :rolleyes:
Thx Sven
Never make attention to this button :eek:
I have said to GameM to make some snapshoot screen :D (that works too with an OCR System after :D
But your method is more speedy !
Pilou