Code Monkey home page Code Monkey logo

Comments (14)

Buy-One avatar Buy-One commented on July 28, 2024 1

@DomMcsweeney

Will a script do? The script will have to constantly run in the background to monitor the state.

from sws.

Buy-One avatar Buy-One commented on July 28, 2024 1

The thing is that in the original script line 7 (indicated in the error message) is occupied by the script header which is commented out and normally cannot throw any error. Needless to say that on my end this problem doesn't occur.

It's possible that the script was downloaded incorrectly, like an HTML page for example. Please make sure that you use the download button on the script page. If you do and the script still produces the error, i guess i will need to see your version of the file, the actual code.

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024 1

@Buy-One
ah, now it's working and that's awesome =)

1st attempt was: right click link > 'save link as'...
2nd attempt was: click link > 'download'

Got there in the end ....

Thank you!

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024 1

@Buy-One it really is... thank you ever so much!

from sws.

Buy-One avatar Buy-One commented on July 28, 2024 1

No prob, glad it's useful.

from sws.

Buy-One avatar Buy-One commented on July 28, 2024 1

Yes, in this respect in particular the SWS extension is shining. Look for Startup actions in the SWS menu.

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024 1

Awesome, thank you very much indeed!
It works perfectly. =)

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024

@Buy-One - I'd be happy to give it a go =)

from sws.

Buy-One avatar Buy-One commented on July 28, 2024

Please try this one

Color ruler if tracks are record armed.lua

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024

@Buy-One - something not quite right happening.
I added the script to a toolbar button, press the button and this pops up:

image

from sws.

Buy-One avatar Buy-One commented on July 28, 2024

Great!

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024

@Buy-One
Is there a way to auto-run the script on startup?

from sws.

DomMcsweeney avatar DomMcsweeney commented on July 28, 2024

Thanks! That works!

Is this possible only if you have SWS installed?
(Person who asked me about the whole idea of this script, still hasn't installed SWS, although this may persuade them!)

from sws.

Buy-One avatar Buy-One commented on July 28, 2024

Actually no. REAPER has a kind of under-documented feature of external file which is picked up by the program on startup without having to be imported into the Action list. It must be named __startup.lua (or __startup.eel but now it's less relevant) and paced in the root of the \Scripts folder.

So to run another script or action on startup using this file it must contain the following code:

-- between the quotes insert the command ID of a script/native action/custom action/SWS cycle action
local COMMAND_ID = ""
reaper.Main_OnCommand(reaper.NamedCommandLookup(COMMAND_ID), 0)

from sws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.