Automatically overwrite all layers with the same name

Wondering how to accomplish a certain animation task? Ask here.

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

Automatically overwrite all layers with the same name

Postby Lh123 » Tue Dec 05, 2017 1:45 am

I was wondering, is there a way to automatically overwrite and replace all layers with the same name in a project? Like if I have several finished characters that are all made up of layers with the exact same names, could I for instance, create a new hand and replace all the old hands in my characters with the new one by overwriting them? Is something like that possible? Thanks for your help!
Lh123
 
Posts: 19
Joined: Sun Feb 19, 2017 7:22 pm

Re: Automatically overwrite all layers with the same name

Postby synthsin75 » Tue Dec 05, 2017 2:59 am

No, there's no native search and replace functionality.
- Wes
ImageImageImage
User avatar
synthsin75
 
Posts: 6594
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma

Re: Automatically overwrite all layers with the same name

Postby Lh123 » Tue Dec 05, 2017 5:11 am

Okay, I was hoping there would be a way to do that. Thanks for the response Synthsin.
Lh123
 
Posts: 19
Joined: Sun Feb 19, 2017 7:22 pm

Re: Automatically overwrite all layers with the same name

Postby jahnocli » Tue Dec 05, 2017 12:30 pm

I've never done this, but isn't it theoretically possible to open a .moho file in a text editor and use Search and Replace in that? (Used to be a lot simpler in the old straight text days, but it should still work even with json format, shouldn't it?). Make a copy first, of course...
You can't have everything. Where would you put it?
User avatar
jahnocli
 
Posts: 3300
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Re: Automatically overwrite all layers with the same name

Postby Shelde » Tue Dec 05, 2017 12:48 pm

I'm not sure if I understand your question correctly, BUT

if you for example have Graphic X imported in Moho and used that for several things, you could easily "replace" it by altering the source file.
Example:
Import a PNG file. Open the PNG file later in Photoshop or any other programme, change something, the change should also appear in Moho ;)
User avatar
Shelde
 
Posts: 15
Joined: Tue Nov 28, 2017 12:36 pm

Re: Automatically overwrite all layers with the same name

Postby hayasidist » Tue Dec 05, 2017 1:28 pm

jahnocli wrote:I've never done this, but isn't it theoretically possible to open a .moho file in a text editor and use Search and Replace in that? (Used to be a lot simpler in the old straight text days, but it should still work even with json format, shouldn't it?). Make a copy first, of course...


yes -- it's straightforward and really does work (I've had to resort to this approach a few times) -- the .moho is actually a .zip - duplicate the file then rename the copy to change the extension (e.g. animation.moho becomes animation Copy.zip) Extract the project.mohoproj file (why it always only has *that* name beats me!) and open it in a text editor -- you have full access to the (unprettied) JSON

Moho will open a .mohoproj file so no need to put it back in its container - just open the amended project.mohoproj in Moho and "save as" a .moho
User avatar
hayasidist
 
Posts: 1940
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Automatically overwrite all layers with the same name

Postby Lh123 » Wed Dec 06, 2017 5:06 am

Shelde wrote:I'm not sure if I understand your question correctly, BUT

if you for example have Graphic X imported in Moho and used that for several things, you could easily "replace" it by altering the source file.
Example:
Import a PNG file. Open the PNG file later in Photoshop or any other programme, change something, the change should also appear in Moho ;)


Hi Shelde, thanks for that answer. That was exactly what I was looking for! Sorry if I worded the question in a confusing way.
Lh123
 
Posts: 19
Joined: Sun Feb 19, 2017 7:22 pm


Return to How Do I...?

Who is online

Users browsing this forum: No registered users and 2 guests