Reame Styles

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Post Reply
User avatar
strider2000
Posts: 445
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Reame Styles

Post by strider2000 » Thu May 11, 2017 5:09 am

Don't know if anyone else has a need for this, but I just wrote a "Rename Styles" script. It brings up a dialog where you can enter a search string and a replacement string. It then runs through all styles and replaces the search string with the replacement string.

I created it, because I like to have my styles named for my characters, so that, if I include multiple characters in the same scene, it's easy to see which style is associated with which character. So, when I create a new character, I can quickly rename styles to match that character.

The script is at
http://www.mediafire.com/file/fk6u2hc5e ... Styles.lua
if anyone would find it useful.
My new website (just getting started) | M1 Characters for Moho
User avatar
jahnocli
Posts: 3344
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Re: Reame Styles

Post by jahnocli » Thu May 11, 2017 9:20 am

I can definitely find a use for this -- thanks!
You can't have everything. Where would you put it?
User avatar
strider2000
Posts: 445
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Re: Reame Styles

Post by strider2000 » Fri May 12, 2017 12:21 am

Oops, I just realized, that the script uses a utility file, msDialog to make it easy to create dialogs. That script is here
http://www.mediafire.com/file/tvozu9zv7 ... Dialog.lua

I also just added a rename layers script as well, here:
viewtopic.php?f=12&t=30937
My new website (just getting started) | M1 Characters for Moho
Ahroo
Posts: 41
Joined: Sat Jun 11, 2011 7:53 pm

Re: Reame Styles

Post by Ahroo » Fri May 12, 2017 4:19 pm

Thanks for both of these scripts - the rename styles in particular will come in handy! And thanks for posting the utility file - I couldn't figure out why it wasn't working before and just knew that it was something I was doing wrong!!! :wink:
User avatar
justoshow
Posts: 55
Joined: Tue Dec 17, 2013 4:41 am
Location: Houston

Re: Reame Styles

Post by justoshow » Sun May 27, 2018 9:21 pm

I needed this! Thank you for creating it. It'll give me a chance to start learning Moho Lua scripting as well.
Post Reply