WorldEdit

WorldEdit

42M Downloads

Selection additions/Multiple active selections

TheRealEaglebird opened this issue ยท 4 comments

commented

The Problem

There are a few instances in which selecting a new cuboid/cyl/sphere that I would like to also add another selection to what's currently selected. For instance, using //chunk to select multiple chunks for regeneration not in a simple cuboid or cutting/copying a very specific selection without the need to carve it out or mask its voids with air.

A Solution

I believe the simplest solution would be a flag to choose whether to begin new selection or add to existing, where the former is the default and what we're all accustomed to, and the latter, something like the command "//sel addition" saves each selection to the 'master' selection in discrete additions. Alternatively, to enable editing of each selection, the command could add new position arguements of the form [(x1,y1,z1),(x2,y2,z2),(xn,yn,zn)] such that each pair/triplet/etc represents its own selection.

Something like this, where I would like to extract the green concrete without disturbing the others and then be able to place it thusly.
Complex Selection
Where it goes
What it looks like

Alternatives

The solution is simple if I have only the green concrete, select a 9x9, and "//paste -a", but becomes complex if the structure cannot be isolated with air first. Further, air masking with the -a option does not let one operate other methods on what would be the complex selection the structure represents (//regen, //set, //replace, etc)

Anything Else?

Here I am "quarrying" multiple chunks and would like to regenerate certain chunks while leaving others bare, without the need to do each operation in sequence (e.g. "//chunk, //regen, //chunk, //regen ... ").
example

It would be easier to fly through and select each chunk, and then perform a //regen on all of them.

commented

Regarding the alternative you mentioned - you can just mask it out to a block like structure_void, which is actually done by default in 7.3. That resolves any issue where it can't be isolated in air

commented

The feature would negate the need for masking in that the selection would encompass only the desired blocks. If the selection is to be reintegrated back into the world, it can be masked after a cut or copy, but block operations like set, replace, and info like count, distr, etc could operate on said selection without upsetting the 'environment' that surrounds it. Individual commands can be run on individual selections, as it has been, but if the repetition is the command and not the selection, a multiple selection would allow one to make all the selections and run commands rather than "click click chat up arrow enter, click click chat up arrow enter".

commented

If we decide to add a selection, can we also subtract one? Would be useful to copy my garden fence and the lanterns on it, but without the flowers inside.

commented

That's the idea, akin to an image editor which lets you select and deselect to construct your "complex selection".