Creating a global function | Intech Studio
💬 general Grid

Creating a global function

Sigabort
Sigabort · · 3 replies

Not sure how to do this.
I've created a function on the setup section of the system event ( e.g. function callMe() ) and am then trying to call this from an encoder element via element[16]:callMe() but this isn't working so I'm sure I've got something wrong here. Can anyone suggest the correct way to do this? thanks

Replies (3)

kkerti kkerti ·

If you just declared callMe(), then call it directly on the encoder by typing callMe()

kkerti kkerti ·

I mean what you wrote above suggests you typed it in the global scope

Sigabort Sigabort ·

hi. thx - I want the function to be in the global scope so I don't have to define it per encoder.

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →