I’m trying to delete or at least change the layer of texts which are smaller than 100.
I can list the items I want, but frankly I don’t know how to proceed from there. The screenshot is only part of the document, in the original document there are about 1000 texts and I have to somehow just keep the ones that are larger than 100 and add points to them. Any help would be much appreciated.
Hey @Foad, try this definition.
Text GH WIP_Updated.gh (15.3 KB)
I made a few changes:
- Changed the input of the cull pattern to be the original
geo outfrom the
dynamic pipelineas we want to cull the text entities themselves, not their values.
- Added a python component that retrieves the
guidof the text entities, this is import for using the
modify objectscomponent later
- Created a new layer called
KOT > 100, this will be the layer that we split the text onto
- Added a
modify attributescomponent from
human. We’ll use this to change the text onto the layer we just created
- Plug our
objectinput of the
modify objectscomponent, and our modified attributes into the
I’ve added in a
stream filter so you can control when the layer change happens, otherwise it would happen as soon as you plugged the inputs in. You could skip the layer shift altogether and go straight to deleting them if you’d like, but this will work (you can look-up
delete by guid if you’re interested).
Hope this was what you were after!
Thanks a lot. This is exactly what I was after and it worked like a charm.
I appreciate you taking the time to modify the definition.