README | Setup | Repository Tools
WARNING! All the stuff in Tools/ is very fragile and to be handled with great care!
Drag'n'drop Setup.luaon your Fuison working area - and you are done or nuked. For details proceed reading ...
- Drag and drop
Tools/Setup.luafrom your working copy on your DaFusions working area - Check the 'Integrate the repository Tools into Script menu' to - guess what - integrate the repository Tools into the Script menu
IMPORTANT! In particular if you are on Windows: don't forget to uncheck all options and to then save the configuration before moving or deleting your Shaderfuse working copy!
You can drag'n'drop Tools/Setup.lua whenever you want to change any of these options.
You can ignore the following sections if you use the Setup.lua as described above. The following instruction might help if you want to do the installation manually, if you want to understand what the setup script does, or if you want to get things right again, if the Setup.lua messed up your system.
Should work on macOS as well as on Windows (if you know where to find the corresponding DR and/or Fusion folders).
- Copy the folder
ShaderfusefromShaderfuse/Tools/Scripts/Comp/to yourScripts/Comp/folder. - Copy the folder
ShaderfusefromShaderfuse/Tools/Modules/Lua/to yourModules/Luafolder. - Create a file
Shaderfuse/~user_config.luain yourModules/Lua/folder. - Edit that
~user_config.luafile to contain the following text with<PATHTOYOURREPO>the path to your working copy of the repositoy:
local user_config = { pathToRepository = '<PATHTOYOURREPO>/' }
return user_configcd into your working copy ... in my case I cloned the repository into ‘~/Projects/':
cd ~/Projects/Shaderfuse/Persist the information on where to find the repository ...
REPO=`pwd`
echo "local user_config = { pathToRepository = '$REPO/' }\nreturn user_config" \
> $REPO/Tools/Modules/Lua/Shaderfuse/\~user_config.lua
BMD=~/Library/Application\ Support/Blackmagic\ Design... and in the same shell set symbolic links for Fusion to point into your working copy:
cd "$BMD/Fusion/Modules/Lua"
ln -s "$REPO/Tools/Modules/Lua/Shaderfuse" Shaderfuse
cd "$BMD/Fusion/Scripts/Comp"
ln -s "$REPO/Tools/Scripts/Comp/Shaderfuse" Shaderfuse... resp. do so for Resolve:
cd "$BMD/DaVinci Resolve/Fusion/Modules/Lua"
ln -s "$REPO/Tools/Modules/Lua/Shaderfuse" Shaderfuse
cd "$BMD/DaVinci Resolve/Fusion/Scripts/Comp"
ln -s "$REPO/Tools/Scripts/Comp/Shaderfuse" ShaderfuseWith Setup.lua's 'Integrate the Repository tools into script menu' option, the folder Tools/Scripts/Comp/Shaderfuse/ is linked into DaFusions Fusion/Scripts/Comp/ folder. Thereby all the scripts in Tools/Scripts/Comp/Shaderfuse/ are accessible via the 'Workspace→Scrips→Shaderfuse' menu in DaVinci Resolve, resp. the 'Script→Shaderfuse' menu in Fusion.
Mainly these make up the 'Repository Tools' submenu items which are meant to perform one or the other action on your local copy of the repository. This being said: these Repository Tools are only of interest for you, if you actively work on the repository and the Fuse's source code.
See Scripts/Comp/Shaderfuse/Repository Tools/ for further details.
Folder: Documentation/ ... see github.io/Shaderfuse/Documentation/
...
Folder: Modules/Lua/Shaderfuse/
...
