You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # FilmScript
  2. The best Canadian camera technology since IMAX.
  3. ## Syntax
  4. FilmScript uses a simple function syntax which you will be familiar with from most modern programming languages like C and Python.
  5. The end of an operation is denoted by a new line `\n`.
  6. Multiple operations can be performed simultaneously by placing them on the same line.
  7. Lines are executed sequentially starting from the top of the file until the end.
  8. Here's a generic example of the syntax:
  9. ```
  10. operation1(operand1, operand2, operand3)
  11. operation2(operand1, operand2)
  12. operation3a(operand1) operation3b(operand1, operand2)
  13. ```
  14. ## Operations
  15. FilmScript is a set of commands that can be used to describe a camera and it's movements in time.
  16. Supported operations and their operands are outlined below.
  17. Here's an example of a functioning FilmScript file using some of the supported operations:
  18. ```
  19. #version 0.1.0
  20. look(0, 0, 0), move(0, 0, 0)
  21. track(20, 0, 20, 5), rotate(0, -5.5, 0, 5)
  22. rotate(0, 5.5, 0, 2)
  23. track(-20, 5, 0, 5)
  24. ```
  25. ### TRACK(DISTANCE_X, DISTANCE_Y, DISTANCE_Z, TIME=0)
  26. Move the camera relative to the current position and rotation.
  27. Use a negative value to move backwards.
  28. This operation supports linear interpolation through the optional TIME operand (seconds).
  29. ### MOVE(X, Y, Z)
  30. Move the camera to an absolute position.
  31. ### ROTATE(DEGREES_X, DEGREES_Y, DEGREES_Z, TIME=0)
  32. Rotate the camera clockwise around the axes, relative to the current rotation.
  33. Use a negative value to rotate counter-clockwise.
  34. This operation supports linear interpolation through the optional TIME operand (seconds).
  35. ### LOOK(DEGREES_X, DEGREES_Y, DEGREES_Z)
  36. Rotate the camera to an absolute rotation.
  37. ### MULTI(OPERATION1, OPERATION2, ...)
  38. Perform multiple operations simultaneously.
  39. This is implicitly used whenever more than one operation appears on a single line.