PlotJuggler icon indicating copy to clipboard operation
PlotJuggler copied to clipboard

Question Reactive Script

Open fazerlab opened this issue 1 year ago • 2 comments

I´m trying Reactive Script and have questions:

I started with a basic script:

file = io.open("testwrite.txt","w")
myText = "Hello"
file:write(myText)
file:close()

image

Raise Error:

image

This script was tested with Lua 54 and work fine.

Another question: Is possible install Lua modules? for example LuaSocket https://github.com/lunarmodules/luasocket

My setup:

Win10 PlotJuggler-Windows-3.6.0

Thank you

fazerlab avatar Dec 15 '23 14:12 fazerlab

image

Here are the lua libraries loaded for the reactive function editor. I assume your script isn't working bc the io library is not explicitly loaded.

Adding the library could be done there, but I imagine that especially file io would be pretty slow for doing on cursor movement.

simonsag96 avatar Jan 27 '24 11:01 simonsag96

Thank you

fazerlab avatar Feb 21 '24 09:02 fazerlab