View Single Post
Old 12-02-2017, 11:36 AM   #15
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Quote:
Originally Posted by Jonas Ekstrom View Post
Is it possible to make this script export the generated CUE to "filename.CUE" and place it in project folder?
replace
Code:
      reaper.ShowConsoleMsg(out_str)
to something like
Code:
      retval, projfn = reaper.EnumProjects( -1, '' )
      if retval then
        projfn = projfn:match('(.*)%.')
        if projfn then 
          f = io.open(projfn..'.cue', 'w')
          if f then 
            f:write(out_str)
            f:close()
          end
        end
      end
mpl is offline   Reply With Quote