vinavfx / StockManager-for-Nuke

Stock viewer and Stock manager for Nuke
GNU General Public License v3.0
16 stars 1 forks source link

Alt plugin path #2

Closed NickPittas closed 6 days ago

NickPittas commented 5 months ago

Having the .nuke folder in google drive (G:\My Drive.nuke) makes the path break for ffmpeg and imagemagick. Hardcoding the path in the converter.py file fixes the issue for me.

def get_ffmpeg():
    if platform.system() == "Linux":
        ffmpeg = '/usr/bin/ffmpeg'
        ffprobe = '/usr/bin/ffprobe'

    else:
        ffmpeg = 'G:/My Drive/.nuke/stock_manager/ffmpeg.exe'.format(get_nuke_path())
        ffprobe = 'G:/My Drive/.nuke/stock_manager/ffprobe.exe'.format(get_nuke_path())

and

def get_identify():
    if platform.system() == "Linux":
        image_magick = '/usr/bin/identify'
    else:
        image_magick = 'G:/My Drive/.nuke/stock_manager/identify.exe'.format(get_nuke_path())

    if not os.path.isfile(image_magick):
        image_magick = ''

    return image_magick
vinavfx commented 6 days ago

that file no longer exists, now you can only index via terminal: cd ~/.nuke/stock_manager/scripts python3 indexing.py