The object that you want to render into a texture would presumably get this line:
myGridShape1.capture = "cap";
and that seems to work, ie the object disappears as one would expect...
but then how do you refer to the texture afterwards to bind it to an object?
but that doesn't work.
And I've tried everything else I can think of such as .glbindtexture(), .jit_matrix(), .to_texture(), etc. But no luck.