Hello,
Is there a way to quickly add a named sublayer to every selected layer?
Hello,
Is there a way to quickly add a named sublayer to every selected layer?
Hi Michael - not that I know of - I guess you’d need a script - I’ll see if I can cook something up later if someone smarter does not…
@michael.martin - see how this works for what you need-
AddSubLayers.py (1.4 KB)
To use the Python script use RunPythonScript, or a macro:
_-RunPythonScript "Full path to py file inside double-quotes"
-Pascal
Ok thanks!
Getting an error.

OK - if there are no layers selected in the layer dialog, you might get that, I’ll fix it.
@michael.martin - updated above - I think that works now, I just goofed…
-Pascal
Works now, would there be a way to type in the name of the sublayer in the command line? (I’m researching as well)
I assume it would read something like child_name = parent_layer.Name + input([prompt])
Hi Michael - yes, hold on a bit, I can add that if the basic thing is working as you like.
-Pascal
yep its working great, I just needed to add a user input string for the name at the end.
Updated above…
-Pascal
Perfect. Thanks!