Newbie questions Pt2 | Intech Studio
💬 general GridGeneral

Newbie questions Pt2

Pottz
Pottz · · 5 replies

More basic questions, please suggest an available source for answering these if there is:
10) VSN1R, I'm looking to change the small buttons 11 and 12 to be page changes. When I click on them in editor, I see there's already a script there (135/390). How to access that script so I can see what it currently does?
11) Doesn't the 390 char limit on scripts seriously limit what you can do, is there a workaround? Calling 'other' scripts etc?
12) I just deleted the midi piece of the Element 12, and noticed the used script decreases, so some of that must have been wrapped up in the midi, is that right?
13) [SOLVED] So I go to add an Action Block, but have no idea what block I should use to do a Page >+1 on the device. [SOLUTION: I found the page functions and had success with page_load(page_next()) code line]
14) Currently using a control, results in the Name, value and graphic value (via changing circle) updating in the LCD screen. Where is this managed and how? I see some code against the LCD screen, how can I learn what this is doing? It starts off with "If f > 0 then", how can I find out what f is? likewise other variables like v[1] etc?

As I said above, I'm happy to read up on all this, but need someone to point me at the resource (if it exists)

Replies (5)

kkerti kkerti ·
  1. click on that thingy on the bottom right to see the lua applied on the action chain
image.png
kkerti kkerti ·
  1. yes, it limits. you have to split code across elements and events and make use of self global (prefix less) declarations. With the next huge release, we increase the character limit to 800.
kkerti kkerti ·
  1. every action block has a small specific wrapper around it, as those action block declarations live in the module's memory and somehow we have to render them, while the source of thruth remains the module
kkerti kkerti ·
  1. the default config is very character contious. Both the "setup" and "draw" events have to be checked together to understand it. The f variable is used in your mentioned condition, to only apply draw functions if f > 0. Its an early exit in the code.
Sabored Sabored ·

This is great to hear! Random q, but is the character limit ... limited by the amount of banks on the grid controller? Like, could we sacrifice 3 of the 4 banks to quadruple the character limit for the first bank?

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →