Reame Styles

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
strider2000
Posts: 506
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Reame Styles

Post by strider2000 »

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.
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Re: Reame Styles

Post by jahnocli »

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

Re: Reame Styles

Post by strider2000 »

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
Ahroo
Posts: 41
Joined: Sat Jun 11, 2011 7:53 pm

Re: Reame Styles

Post by Ahroo »

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: 59
Joined: Tue Dec 17, 2013 4:41 am
Location: Houston

Re: Reame Styles

Post by justoshow »

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