ShotGrid - Action Menu Items(AMIs)


Versions 페이지 업로드 된 Thumbnail(mp4)를 다운로드 하는 AMIs

ami1


How to use AMIs - Using Custom Browser Protocols

Registering a protocol on Windows

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\shotgrid]
"URL Protocol"=""

[HKEY_CLASSES_ROOT\shotgrid\shell]

[HKEY_CLASSES_ROOT\shotgrid\shell\open]

[HKEY_CLASSES_ROOT\shotgrid\shell\open\command]
@="python" "~\Shotgrid-AMIs\download_controller.py" "%1"
  • Info - batch file 이용하여 cmd 확인

    Registry Editor

    [HKEY_CLASSES_ROOT\shotgrid\shell\open\command]
    @="C:\Windows\System32\cmd.exe" "/k" "{path}\test.bat" "%1"
    

    test.bat

    python ~\Shotgrid-AMIs\download_controller.py %1 pause
    

Registering a protocol on Linux

$ cd ~/.local/share/applications
$ vim shotgrid.desktop

[Desktop Entry]
Name=shotgrid
Type=Application
Exec=python ~/Shotgrid-AMIs/download_controller.py %U
Terminal=true
MimeType=x-scheme-handler/shotgrid;

$ update-desktop-database ~/.local/share/applications/

Reference