Quickly rename layers and bones (some preset names)

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
moe33
Posts: 12
Joined: Mon Sep 23, 2019 4:56 am
Location: Beijing

Quickly rename layers and bones (some preset names)

Post by moe33 »

-
✨Download here

Image

this is new version :D

----

Because I'm too lazy to type, I wrote this script... just click the mouse

Image

This code is written in Gemini, because I can't write code (lll¬ω¬)
But it works well~
Maybe it would be better to change it to a floating window (because it's too long...), but Gemini can't do it, so leave it like this ┑( ̄Д  ̄)┍



Thanks~
Last edited by moe33 on Wed Oct 02, 2024 12:31 pm, edited 1 time in total.
User avatar
Panha
Posts: 202
Joined: Sat Oct 21, 2023 3:59 pm

Re: Quickly rename layers and bones (some preset names)

Post by Panha »

moe33 wrote: Mon Sep 30, 2024 11:30 am Because I'm too lazy to type, I wrote this script... just click the mouse

Image

This code is written in Gemini, because I can't write code (lll¬ω¬)
But it works well~
Maybe it would be better to change it to a floating window (because it's too long...), but Gemini can't do it, so leave it like this ┑( ̄Д  ̄)┍

✨Download here

Thanks~
Please make a tutorial about how to use Gemini to write Lua code for Moho to help people who can't write code, I tried it some time ago but it does not work, and I don't really know how to place the code inside the code template that I took from Moho script website. ❤️
Sreng Pagna, animator and author
User avatar
moe33
Posts: 12
Joined: Mon Sep 23, 2019 4:56 am
Location: Beijing

Re: Quickly rename layers and bones (some preset names)

Post by moe33 »

Panha wrote: Mon Sep 30, 2024 12:00 pm
moe33 wrote: Mon Sep 30, 2024 11:30 am Because I'm too lazy to type, I wrote this script... just click the mouse

Image

This code is written in Gemini, because I can't write code (lll¬ω¬)
But it works well~
Maybe it would be better to change it to a floating window (because it's too long...), but Gemini can't do it, so leave it like this ┑( ̄Д  ̄)┍

✨Download here

Thanks~
Please make a tutorial about how to use Gemini to write Lua code for Moho to help people who can't write code, I tried it some time ago but it does not work, and I don't really know how to place the code inside the code template that I took from Moho script website. ❤️
1. https://mohoscripting.com/new_script I will first use this tool to make a code template, such as what buttons or text boxes I need. If I know there are similar scripts, I will copy some codes into the template myself.
2. Then send the code template to Gemini and tell it that this is a lua script for Moho and what function I need this code to achieve.
3. Then run the script code it replies to me in Moho. The code written by Gemini is usually wrong, but Moho will prompt which line of code has a problem. I will first look at the line of code with the error, and then go to https://mohoscripting.com/ to find which page it is on.
4. Then select and copy the relevant page, send it directly to Gemini, tell it that these are Moho's APIs, and let it modify the code again.

In short, just repeat the above steps until it can run.
I used Chatgpt before, but now it has a limit on the number of chats (and it seems to have become stupid now), so I chose Gemini, but Gemini doesn't feel very smart.
You can try Cursor https://www.cursor.com/, which has many AIs to choose from.
User avatar
Panha
Posts: 202
Joined: Sat Oct 21, 2023 3:59 pm

Re: Quickly rename layers and bones (some preset names)

Post by Panha »

Thank you very much for the instruction. It is helpful information.
Sreng Pagna, animator and author
Post Reply