Ive seen in many libraries for snap where some of the blocks have this variable that is global as i can call it from anywhere but is not visible in the editor. I want to try to do something like that but I don’t know how. Does anyone have any ideas.(some examples of libraries that use this are “shapes” and “neural networks”.)
if the library is creating a variable, you’d have to hide it programmaticially. im pretty sure theres an extension primitive that does this (like ide_hide or something) but i forget which exactly, or how it works
you can use the show/hide var blocks with a ringified block using run/w/inputs
I tried that with variables and it didnt seem to work
That doesn’t work for hiding variable blocks, because it hides the variables instead.
Yep, you’re right, my bad.
![]()
Try this, for hiding in program (e.g. for a library easily)
Okay, ill try that
