Skip to content

Instantly share code, notes, and snippets.

@csprance
Created February 18, 2019 02:23
Show Gist options
  • Save csprance/36a874be94923cc7cca361c2d7cc40fd to your computer and use it in GitHub Desktop.
Save csprance/36a874be94923cc7cca361c2d7cc40fd to your computer and use it in GitHub Desktop.
Get selected clip path in modo
import modo
import lx
def get_selected_clip_filepath():
scene = modo.Scene()
[clip] = scene.selectedByType(lx.symbol.sITYPE_VIDEOSTILL)
filepath = clip.channel("filename").get()
return filepath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment