Page 1 of 1
Less ridiculous incremental naming for tools

Posted:
Tue Nov 21, 2023 4:31 am
by Stephen Dixon
It's very annoying how copying and pasting a tool will result in a numerical suffix being added on to the name, even if it already has a numerical suffix. So if I copy and past Transform_1, the new tool will be called Transform_1_1 instead of Transform_2. This means you end up with tools called Transform_1_1_2_1_1...
Can we have an option to always increment the suffix if the tool name ends in a number?
Re: Sane incremental naming for tools

Posted:
Tue Nov 21, 2023 9:22 pm
by Jim Simon
That is a good idea!

Re: Sane incremental naming for tools

Posted:
Wed Nov 22, 2023 3:42 pm
by philipbowser
+1
Fusion has a setting called "Use simplified copy names" which almost gets this right, except for one issue.
With the setting turned on, any digit after an underscore will increment as you described. So copying "Blur_1" would create "Blur_2".
However, by default, any node you add to the node graph doesn't put an underscore between the digit and the node name and instead labels them like this, "Blur1". This means that even with the simplified copy names settings turned on, the first copy will append an underscore to create "Blur1_1" and then any subsequent copies will increment the last digit to create "Blur1_2", "Blur1_3" and so on. This is still better than having a continuous series of "_1", but it's not ideal.
I think either newly created nodes need to use an underscore by default, or the "Use simplified copy names" needs to increment regardless of if an underscore was used.
Re: Less ridiculous incremental naming for tools

Posted:
Wed Dec 06, 2023 4:44 am
by Stephen Dixon
Thanks for that tip. Yep, this reeks of some lack of attention to detail.
It isn't that hard, even I have written code that does this correctly in scripts for After Effects, and I'm the world's worst script kiddy. A bit of regex and it's in the bag.
Re: Less ridiculous incremental naming for tools

Posted:
Thu Dec 07, 2023 4:01 am
by jjsawdon
+1.