trystyncote / scripted-video

This is a project that attempts to produce an animation-looking video based on a given script.
MIT License
0 stars 0 forks source link

More clearly define syntax for script formatting. #4

Closed trystyncote closed 1 year ago

trystyncote commented 1 year ago

The formatting for the script is following an SQL-inspired style. This means that keywords would come in a specific sequence that the program would understand. Right now, I have ideas for a new traits and will be pasting them in this issue for my own documentation.

trystyncote commented 1 year ago

HEAD = \

The HEAD keyword will be to define a trait of the video that the program requires. This includes the window width (window_width), window height (window_height), the framerate (framerate), and the intended file name for the finalized video (file_name). These are required to be in the script. I am currently unsure if I should mandate it in the very top of the script or not, but I probably will.

trystyncote commented 1 year ago

SET = AS

The SET keyword would define a variable within the script that is used for future reference. The parameters are , which is the name of the variable -- this will be case-sensitive, which is the value that is included, and , which is the type of variable (int, string, etc). This is mainly so I can store the file address into a variable and type that variable instead of the full address repeatedly.

I'll probably also include the file address where the script is as a keyword, such as __currentaddress_\.

trystyncote commented 1 year ago

FROM (/) MANAGE \ (\)

The FROM keyword would call to pull a file from the specified location and manage it. The MANAGE keyword would be split into IMAGE, VIDEO, and AUDIO subtypes, each with their own parameters. This is also where the animation would occur, but the keyword for that isn't finalized in my head yet.

trystyncote commented 1 year ago

<CREATE/MOVE/DELETE> OBJECT : \

Replacing the would-be FROM keyword, the OBJECT keywords would create, move, and delete an object created for the video, as managed by the program. The object could be a character on the screen, or the overlay that displays over it all. These objects would be layered, to allow them to cross over each other without interfering. As of writing, the sample script and the family of classes in 'class_Compile.py' do not yet support this.

trystyncote commented 1 year ago

CREATE OBJECT \: \ \

MOVE OBJECT \: \

DELETE OBJECT \: \

file_name = The name of the file called. scale = The size of the image, in percentage of proper size. layer = The layer the image is on. Lower is in the back. delay = How long the program removes the object

trystyncote commented 1 year ago

Not guaranteed as of writing this, but perhaps a separate tag for text?

WRITE \, \, \, \, \, \