JS-less stage size

The stage size is an editor option and so is one of the options for the getters and setters library, but it uses javascript (and jens is probably gonna remove it). But you can actually set it using SciSnap! primitives.

[scratchblocks]primitive[src_load(url) v][libraries/SciSnapExtensions.js]@delInput@addInput::grey[/scratchblocks]

Run this block to load the SciSnap primitives, don't delete it .

[scratchblocks]primitive[src_load(url) v][libraries/SciSnapExtensions.js]@delInput@addInput::grey primitive[SciS_setvalue(which,value)][Stage size](list(width)(height)@delInput@addInput::list)@delInput@addInput::grey//add me underneath[/scratchblocks]

If the primitive blocks don't appear in the pallete, tick the extension blocks setting. If you don't know how to get it JS-less, Check [this topic](https://forum.snap.berkeley.edu/t/stage-size-without-javascript/9621) by @loucheman .

Here's my attempt at a better formatting:

Thank you, it's helpful !

Broken styling. :stuck_out_tongue:

PS: This still works in SciSnap​!​3

Pls don’t necropost..

Actually, we can now use untitled script pic 295 to obtain both width and height of stage.

um theyre talking about the setter not the getter

Sorry about that. :sweat_smile:

Oops!