Get layer names based on object list


So I have a list with about 220 items, and I want to drop the items which are on the layer “SOLIDS - DIJKVLAKKEN”. What is the most effective way to do this? I tried to recieve all the layer names and then put string contains “SOLIDS - DIJKVLAKKEN”, but I couldn’t figure out how to recieve all the layer names.

Thanks in advance

Found it, use the “objectExtensions” package to gain access to the parameter by name node.

FYI there is an OOTB node called Object.Layer that could be considered the “correct” way to do this.

1 Like