is there a way using a macro to name a solid and if that name is used it will add a _next number
from a macro if i create a solid block, name it base
them make another solid and name it base it would add _1 to second block
Solved! Go to Solution.
Solved by jon.hunwick. Go to Solution.
That should be fairly easy, Bruce. In broad brush strokes (you will find the actual commands to use in the Help) what you'll need to do is this:
1 - Ask the user for a text string of the root name.
2 - Store the name of the currently selected solid
3 - Create a next text string that is the toot name + '_' + a number (starting at 1)
(The command you need here is 'concatenate' e.g. let newname = concatenate ($rootname ; '_' ; $counter)
4 - Find out if that solid exists.
5 - If it does not, rename the current solid
6 - If it exists, increment the counter by one, and go back to step 3
can you give me the example please
Can't find what you're looking for? Ask the community or share your knowledge.