View Single Post
Old 03-21-2017, 07:31 PM   #21
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by Airal View Post
Very cool! Is there any way to have a default script run at startup? I could probably modify the code, but probably better for it to be done by the repository.
Not currently. For now you might be interested with the `.` (dot) command which re-runs the previous code or the up/down arrows which navigate in the code history (TODO: save the history to file so it's not lost on the next startup).

Quote:
Originally Posted by Airal View Post
Is there still a gfx issue? I assume the problem is due to the script itself using the gfx?
Yes, until REAPER allows a single script to open multiple windows using gfx.

Quote:
Originally Posted by Airal View Post
There seems to be some bugs in the script. When I execute the script in reaper it works fine but when I execute it in repl it fails iwth

attempt to compare nil with number.

I am simply trying to execute `reaper.CountTracks(0)`
Perhaps the script you are loading is defining and using some local variables? If so, Lua erases those after the evaluation. This would explain the nil.
cfillion is offline   Reply With Quote