Script to Name Layers
Moderator: Kathy_9
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Script to Name Layers
Hi, All
Suz wrote a script a number of years ago that renames layers from bottom to top. It is one of my favorites.
I was wondering if anyone knew of a script that would rename an additional set of layers?
As in the first 10 layers numbered 1-10,, and then the next 10 numbered
starting at one again. Or where I could name the layers?
Have I explained that clearly enough?
It would be wonderful, especially when I use a lot of layers for animations.
Thanks for any help,
Leslie
Suz wrote a script a number of years ago that renames layers from bottom to top. It is one of my favorites.
I was wondering if anyone knew of a script that would rename an additional set of layers?
As in the first 10 layers numbered 1-10,, and then the next 10 numbered
starting at one again. Or where I could name the layers?
Have I explained that clearly enough?
It would be wonderful, especially when I use a lot of layers for animations.
Thanks for any help,
Leslie
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
I don't know of one off hand, but making one would be very easy.
How would you like to identify the layer pattern? Do you just want a dialog asking for a number 1 to max layers? Do you need it to enforce numbers that can only be repeated exactly? For example, if you have six layers you won't be allowed to enter 4 as a layer count because it would result in the pattern 1, 2, 3, 4, 1, 2?
The script logic is simple enough. The question is how much control over the naming do you want? Tight control? Or loose control? And do you want to do more than just numbers?
How would you like to identify the layer pattern? Do you just want a dialog asking for a number 1 to max layers? Do you need it to enforce numbers that can only be repeated exactly? For example, if you have six layers you won't be allowed to enter 4 as a layer count because it would result in the pattern 1, 2, 3, 4, 1, 2?
The script logic is simple enough. The question is how much control over the naming do you want? Tight control? Or loose control? And do you want to do more than just numbers?
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
Say I had a layer and had to duplicate it 5x.
After duplication it would say Raster 1, copy 1 of raster, Copy (2) of Raster 1, etc.
So, I would like to be able to re-name the layers X1, X2, X3, etc.
Then, if I added a new layer and duplicated that layer 6x, I could re-name those 6 layers without including the first layers.
Guess I am saying that I would like to be able to customize the naming of layers, so I could use anything I choose.
Have I explained it better now?
Hope so.
After duplication it would say Raster 1, copy 1 of raster, Copy (2) of Raster 1, etc.
So, I would like to be able to re-name the layers X1, X2, X3, etc.
Then, if I added a new layer and duplicated that layer 6x, I could re-name those 6 layers without including the first layers.
Guess I am saying that I would like to be able to customize the naming of layers, so I could use anything I choose.
Have I explained it better now?
Hope so.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
Nope, still a lot of questions.
1: I've written three different scripts that can give you the kind of pattern design you're talking about. I'm including a video to demonstrate how all three do the same thing in different ways. Tell me which one you're looking for.
https://drive.google.com/file/d/0B8FlFL ... sp=sharing
2: Do you want to name them "X#" Or do you want a padded number like Suz had "001...999"? Do you want to be able to pick the padding or text that comes before a number? How do you want to control the numbering?
1: I've written three different scripts that can give you the kind of pattern design you're talking about. I'm including a video to demonstrate how all three do the same thing in different ways. Tell me which one you're looking for.
https://drive.google.com/file/d/0B8FlFL ... sp=sharing
2: Do you want to name them "X#" Or do you want a padded number like Suz had "001...999"? Do you want to be able to pick the padding or text that comes before a number? How do you want to control the numbering?
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
#3 is the closest to what I want, but would like to be able to customize the name of the layers something besides just numbers.
If not, #3 would be the one I would use most, altho name and numbering would be a winner. #2 would come in handy as well.
What I'd really like is to be able customize the name of the layers~~~ could you write something where I could name them by number AND by name, so I could differentiate what image is on the layers as well as have the numbers layered?
That would be perfect.
Thanks so much for recording it, too. What a help!!! btw, you have a nice voice.
If not, #3 would be the one I would use most, altho name and numbering would be a winner. #2 would come in handy as well.
What I'd really like is to be able customize the name of the layers~~~ could you write something where I could name them by number AND by name, so I could differentiate what image is on the layers as well as have the numbers layered?
That would be perfect.
Thanks so much for recording it, too. What a help!!! btw, you have a nice voice.
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
Hi, Levi
May I have the #3 script, please? It sure would help me out.
Thanks,
Leslie
May I have the #3 script, please? It sure would help me out.
Thanks,
Leslie
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
Sorry, was just working out some details on the final script
You can download it here - http://forum.corel.com/EN/viewtopic.php?f=104&t=62121
I added the option for adding a prefix to the name of the layer, it'll still have the three digit number at the end. It was the simplest option for adding custom naming to layers. I also added the ability to select the layers you want to rename instead of giving a count if you want to. So it works both the original way and now also with layer selections. Video is included in the topic post linked above.
You can download it here - http://forum.corel.com/EN/viewtopic.php?f=104&t=62121
I added the option for adding a prefix to the name of the layer, it'll still have the three digit number at the end. It was the simplest option for adding custom naming to layers. I also added the ability to select the layers you want to rename instead of giving a count if you want to. So it works both the original way and now also with layer selections. Video is included in the topic post linked above.
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
I didn't mean to be rude and nudge you about the script. I was just excited about it.
I thank you about a bazillion million times!!!
You have just saved me hours of work.
I sure appreciate the time and effort it took to do this for me.
And to do the video.
Thank you so much for your kindness.
May I share the script, and please tell me how you would like to be credited?
I thank you about a bazillion million times!!!
You have just saved me hours of work.
I sure appreciate the time and effort it took to do this for me.
And to do the video.
Thank you so much for your kindness.
May I share the script, and please tell me how you would like to be credited?
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
It is a free to use script. Everyone is welcome to it. No credit necessary.
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
Ok, thanks.
I always ask.
I always ask.
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
Would you mind changing the script so that it will start at a 0 layer instead of a 1? I find that would work even better.
Thanks,
Leslie
Thanks,
Leslie
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
I'd rather not waste the time as most will usually want it to start at 1. But it's easy enough to change that you can just do it yourself. Here's how.
1) Open the script in Notepad
2) Search for
3) Change it to
Now it will start at zero. In fact change that variable to your starting number minus one and you can start from whatever number you want.
1) Open the script in Notepad
2) Search for
Code: Select all
namenum = 0
Code: Select all
namenum = -1
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
I have no idea how to open a script in notepad. I have been googling, to no avail.
I am script impaired.
How do I do that?
I am sorry to be such an annoyance after all your kindness.
I am script impaired.
How do I do that?
I am sorry to be such an annoyance after all your kindness.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to Name Layers
Open notepad
File -> Open
Navigate to the script
Open it
Scripts are just regular text files. There is nothing to them.
File -> Open
Navigate to the script
Open it
Scripts are just regular text files. There is nothing to them.
https://levifiction.wordpress.com/
-
Leslie
- Posts: 212
- Joined: Mon Nov 25, 2013 5:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: intel core i7
- ram: 32 gb
- Video Card: intel iris
- Hard_Drive_Capacity: 1 TB
- Monitor/Display Make & Model: Dell Inspiron 7700 27 All-in-One Desktop
- Corel programs: 2019 Ultimate, 2022 Ultimate
- Location: USA
Re: Script to Name Layers
Wowee!!
Thank you, thank you.
I learned something new.
Love when that happens.
Thank you, thank you.
I learned something new.
Love when that happens.
