Hide blocks using a script

Is there a way to hide blocks using a script

e.g.

or you can simply feed a block as an input to hide variable ():

run ({hide variable [ V]} @>) with inputs ({block} @>) @<:>

Lovely :slight_smile:

Never occurred to me to use hide variable

I’ve modded your script to allow me to delete reporters and predicates as well

I think you have just made it multi-input. In my original block, if a reporter or a predicate is slotted into an input, it will also hide that reporter or predicate.

[edit - sorted in next post but leaving in case someone else ever has same issue) ]

I’ve run into a slight issue with my modified version

If I accidentally leave a variadic slot empty - I get an error when running the for loop

But I don’t seem able to remove an empty ring from the list

Any ideas or solutions welcome

Warning - its a large project so will take some time to load

The hide2 block/script is in the admin sprite

Here is the project with it in

Problem sorted by eliminating the empty ring before doing the blocks split

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.