34j / DaVinciResolve.TypeHints

Type hints / annotations for DaVinci Resolve Scripting (Lua)πŸ“„

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DaVinciResolve.TypeHints

Python project that generates lua type hints based on the most popular Lua Language Server lua-language-server.

Sample

Sample is here. typeHints.lua

Coverage

  • C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\Scripting\README.txt
  • C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\Workflow Integrations\README.txt
  • C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\Fusion Fuse\Fusion Fuse Manual.pdf
  • Unorganized part of above references
  • Discoverable properties / methods / registry attributes using app:GetHelpRaw('ClassName')
  • Other not documented / undiscoverble properties / methods / registry attributes

Requirements

Installation of DaVinci Resolve is required. The project is by default for Windows only due to an issue with the file path of the references, but if you edit the script, it should work well on other operating systems.

Usage

Just copy typeHints.lua to your DaVinci Resolve Scripting folder. typeHints.lua must be created by yourself due to copyright reasons. Actually, it can be generated simply by copying and pasting the command below into a command prompt.

mkdir DaVinciResolve.TypeHints
cd DaVinciResolve.TypeHints
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install git+https://github.com/34j/DaVinciResolve.TypeHints.git
drtypehints

OR

git clone https://github.com/34j/DaVinciResolve.TypeHints.git
cd ./drtypehints
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install -r requirements.txt
python -m drtypehints

Alternatives

As for Lua, no alternatives was found.

Development

Contribution

Pull requests are welcome.

About

Type hints / annotations for DaVinci Resolve Scripting (Lua)πŸ“„

License:MIT License


Languages

Language:Lua 74.6%Language:Python 25.4%