@tig said:
You might be falling foul of the v2017 changes to how references and id's work.
I'm currently rewriting my ExtrudeTools because of it.
Previously [<=v2016] you could get an array of the entities within a container [say ents=group.entities.to_a
] and then when you used group.explode
those references saved in 'ents' would still be valid in their new context [although you might need to trap for merged entities etc], but then their id's were 'transitory' between sessions.
But in v2017 now those saved references are found to be 'invalid' after the group.explosion
, this is because during the explosion those entities are now deleted and replicated in their new context, but now using their same enduring id's across sessions.
The references now return as deleted entities 'invalid' !
This can be sidestepped by recoding, with say ents=group.explode
- which gives 'ents' as an array of what results from the explosion.
So this is what we have to look forward to with each new release!!!!
Updated .rbz's at Plugin Store and my blog.