Batch Python Browser - Is there a better method?

Hello Python People,

I could use a little help. I have a script that works well, but I’m wondering if it can be better. I wanted a script where I can right-click an empty space in batch and see an option for Import Roto or something like that and then the script will open a browser to a specific path. I’m currently using

flame.browser.show(
            title = "Import Roto",
            default_path = roto_path,
            multi_selection = True,
            include_resolution = True)

This works pretty well but is there a better browser to use? I’d like to see the media to be able to check it before importing it. This option only displays file names. Or does this need to be a feature request? Thanks!

1 Like

I’ve never tried - i’ll take a look

1 Like

I have a couple of scripts that seem like they would have some elements that you could use to help do what you need.

I grabbed them from the Logik Portal.

Right-click in batch to import

import_browser.py

Right-click anywhere inside the batch schematic to open the MediaHub browser and import media without needing to go to the node bin.

and

Reveal Path

reveal_path.py

Version = 2.6.0

Linux. Reveal the path of a clip, open clip, or write node in the finder or Media Hub. Reveal Path — Flame Python Scripts

Have a dig around in these and see how they do what they do. Borrow and modify.

I hope these help.

1 Like

Thanks Richard! I’ve build a small pipeline just by cutting and pasting from Mike’s code, so those were the first places I looked.

@fredwarren @MikeV What do you guys think?

The only other way I can think of doing it would be to switch to the MediaHub tab and have it go to your path:

flame.go_to('MediaHub')
flame.mediahub.files.set_path(roto_path)
1 Like

Thanks @MikeV! Tried that too. I’ll submit a feature request.

1 Like