MR Name

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

MR Name

Post by KuzKuz »

Hello, I have written a new script called MR Name for renaming bones and layers.
There is no video tutorial yet, but there is a video demonstration.
The script allows you to create up to 200 slots where you can assign any text to use them for creating names.
To assign a name, you need to hold down Alt and click on the slot button.
You can create presets with slots, export them to a file, and import from files. You can sort and change the order of slots.
There is also a search and replace function for text and the ability to delete characters at the beginning or end of a line.



https://mohoscripts.com/script/mr_name
Last edited by KuzKuz on Tue Jan 21, 2025 11:29 am, edited 1 time in total.
User avatar
moe33
Posts: 12
Joined: Mon Sep 23, 2019 4:56 am
Location: Beijing

Re: MR Name

Post by moe33 »

(ᵒ̤̑ ₀̑ ᵒ̤̑)wow!*✰
You are awesome!!!
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Thank you, I see that you also had a similar idea. I also don't like typing text for the names of bones and layers from the keyboard.
User avatar
Panha
Posts: 202
Joined: Sat Oct 21, 2023 3:59 pm

Re: MR Name

Post by Panha »

Nice tool ❤️ But it does not work for me. I double click on the slot just like what you did in the video, but there is not popup panel for me to enter the name. I am still on MH14.1.
Sreng Pagna, animator and author
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Panha wrote: Tue Oct 01, 2024 1:25 am Nice tool ❤️ But it does not work for me. I double click on the slot just like what you did in the video, but there is not popup panel for me to enter the name. I am still on MH14.1.
Hi, to enter text you need to hold down Alt and click on the slot button, rather than using double-click.
Noah212
Posts: 1
Joined: Fri Sep 13, 2024 8:52 am

Re: MR Name

Post by Noah212 »

Awesome script!you might want to consider adding multi-selection support for renaming bones and layers This could make the process even faster Also, expanding the sorting feature to group names by a set scheme would be really helpful.
Sometimes after exporting files with presets, there could be text formatting issues – double-check if something goes wrong.If needed, take a look at mohoscripting.com :wink:
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Noah212 wrote: Tue Oct 01, 2024 10:06 am you might want to consider adding multi-selection support for renaming bones and layers This could make the process even faster
Hi, the script already has support for multi-selection for bones and layers.
Noah212 wrote: Tue Oct 01, 2024 10:06 am Also, expanding the sorting feature to group names by a set scheme would be really helpful.
Currently, two sorting modes are available: considering all characters or letters only. These modes depend on whether you pressed the sorting button with Alt or without.
Noah212 wrote: Tue Oct 01, 2024 10:06 am Sometimes after exporting files with presets, there could be text formatting issues – double-check if something goes wrong.
Can you send me the file with your preset that has issues and a screenshot of how it should look in the panel?
User avatar
Panha
Posts: 202
Joined: Sat Oct 21, 2023 3:59 pm

Re: MR Name

Post by Panha »

Thank you. It works
Sreng Pagna, animator and author
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Name

Post by Greenlaw »

MR Name sounds very useful, especially when repurposing a rig. I recently had to rename many layers in multiple Switch Layers, and I think I could have used this tool for that.

Downloading now and will check it out later today.

Thanks for sharing, KuzKuz! :D
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Greenlaw wrote: Tue Oct 01, 2024 7:28 pm MR Name sounds very useful, especially when repurposing a rig. I recently had to rename many layers in multiple Switch Layers, and I think I could have used this tool for that.

Downloading now and will check it out later today.

Thanks for sharing, KuzKuz! :D
Thank you for the support!
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Version 1.7. Since the name of an image layer cannot be empty, I replaced the "Clear name" button with a "Start new name" checkbox.
When you need to clear the name, you activate this option, and when you press any button with text, the text will not be added to the current name but will completely replace it.
After that, the "Start new name" checkbox will automatically deactivate, and you can continue adding text to the name.

https://drive.google.com/file/d/1rzYl4X ... sp=sharing
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

Version 1.7.1 You can now click on the "Start new name" option while holding ALT to keep it enabled until you manually turn it off.

https://drive.google.com/file/d/1rzYl4X ... sp=sharing
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Name

Post by KuzKuz »

User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Name

Post by Greenlaw »

Omigosh! Eugene, this looks fantastic! As you mentioned in the video, the naming bones and layers is a necessary but very timeconsuming task. MR Name appears to solve this problem brilliantly!

I don't know how I missed this tool before. Downloading now, and I can't wait to start using it!

Image
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Name

Post by Greenlaw »

Ha ha...silly me! I just noticed I commented back in October, but I've been so busy with the channel that I must have forgotten about it.

Sigh...they say the mind is the first thing to go. Anyway, I'll be using MR Name...this time, for sure! :D

Image
Post Reply