Batch / List names from my layers.
Hi, I'm quite new at scripting, and I haven't found yet what i'm looking for.
So i'm asking for tips or even part of codes to get me in the way.
I'd like to list the names of every single object of specifics layers
(layers with a prefix "XX" for exemple).
And get that list in an external .txt format.
It should look like
XX_Layer_name1 (5 objets) :
-------------------------------
Box001
Box002
Box003
Box004
Box005
XX_Layer_name2 (5 objets) :
-------------------------------
Box001
Box002
Box003
Box004
Box005
Thank's in advance.
alex
Comments
.
deleted
Awesome thank you so much for
..deleted..
...
This is your fn
BTW empty layers are not printed in *.txt
bga
Repost of the answer.
Awesome thank you so much for your help mate, it works perfectly!
Can I ask few a few things more,
How could I specify in this function, to check only specific layers.
I would like to print objects from layers with a specific Prefix. Because I work on heavy scenes with loads of objetcs and I don't need to have everything.
Also,what If I would like it to print my objects names, with ";" instead of "_" in my txt file.
I think it might be a $string replace, but i'm clueless due my lack of knowledge in MS.
Again, thank you for your time, much appreciated.
Cheers
...
I didn't test this but concept is good
bga
Perfect!
You're a life saver! Thank you so much barigazy , it works like a charm !
Cheers