View Single Post
Old 01-09-2019, 11:54 AM   #13
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Eliseat View Post
Wait... would this not also be possible from inside Reaper?
- getting the
Yes, I think so, video files are not handled differently to audio files for many of the scripting functions.

edit : I tested this works for a selected media item that has a video file :

Code:
local item = reaper.GetSelectedMediaItem(0,0)
local take = reaper.GetActiveTake(item)
local src = reaper.GetMediaItemTake_Source(take)
local src_filename = reaper.GetMediaSourceFileName(src,"")
reaper.ShowConsoleMsg(src_filename.."\n")
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote