Search found 8139 matches
- Sun Dec 03, 2023 8:21 pm
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
This should be a reliable way to get the last selected layer in the original, saved file: function LK_ExportLayerToTodoFolder:IsEnabled(moho) if (moho.document:Path() ~= "") then self.layerID = moho.document:LayerID(moho.layer) self.docPath = moho.document:Path() end self.lastLayer = moho....
- Sun Dec 03, 2023 7:51 pm
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
I thought of copying the contents, but I didn't know if this could occasionally be used on group layers too.
- Sun Dec 03, 2023 5:53 pm
- Forum: Bug Discussions
- Topic: Moho 14 / Liquid Shapes / texture image / BUG
- Replies: 4
- Views: 2410
Re: Moho 14 / Liquid Shapes / texture image / BUG
Image textures are only influenced by bone strength.
- Sun Dec 03, 2023 5:51 pm
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
Yeah, when I was testing this, it seemed that any print function would derail the file close.
I think I only saw this when trying to close the new file, but haven't tested any further.
I think I only saw this when trying to close the new file, but haven't tested any further.
- Fri Dec 01, 2023 8:18 pm
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
I didn't think about using the moho-helper-object! Nice. I did try to fix it that way for a bit, but didn't get far. Might not work in this case? I do feel you should be able to update moho.document after creating new files... I hope we can get some API updates, generating moho files is kind of an ...
- Fri Dec 01, 2023 6:24 am
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
It looks like this may be a somewhat similar case as modeless dialogs before the helper object, where the initial document state persists throughout the entirety of the function run. In this case, the moho object passed to the run function cannot be changed until the function is initiated/run again....
- Thu Nov 30, 2023 1:12 am
- Forum: Scripting
- Topic: How do I create a new moho file and copy a layer to it via script?
- Replies: 18
- Views: 26888
Re: How do I create a new moho file and copy a layer to it via script?
Since there's no API for copying layers across documents, I *think* you'd need to do this: 1. create your new document and save it, like you're doing (there's no need to open this file, as it should already be the current document) 2. use something like loadDoc = moho:LoadDocument(path) to load the ...
- Tue Nov 28, 2023 12:32 am
- Forum: Bug Discussions
- Topic: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
- Replies: 26
- Views: 8395
Re: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
If you can pare the file down to the minimum that still makes it crash using layer selector, you could post it here for others to investigate.
Otherwise, it's just shots in the dark at this point.
Otherwise, it's just shots in the dark at this point.
- Sun Nov 26, 2023 12:17 pm
- Forum: Bug Discussions
- Topic: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
- Replies: 26
- Views: 8395
Re: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
Curvers are basically just warp meshes, but with tons of small slices. So having curvers manipulate other curvers could be multiplying the performance hit. I'd suggest using regular bone chains and curvers, rather than stacking curvers. Like Daxel said, try removing things from a copy of the file, t...
- Fri Nov 24, 2023 9:06 pm
- Forum: Share Your Work
- Topic: Dora the explorer meets the cartel
- Replies: 2
- Views: 1523
Re: Dora the explorer meets the cartel
There should be a content warning on this. Language, violence, and gore.
- Fri Nov 24, 2023 9:03 pm
- Forum: General Moho Discussion
- Topic: One of the layer color turned into black color in moho pro 14.1
- Replies: 4
- Views: 1780
Re: One of the layer color turned into black color in moho pro 14.1
Without seeing the image, my first guess would be colorize layer in the layer settings.
- Fri Nov 24, 2023 9:27 am
- Forum: General Moho Discussion
- Topic: Rendering or masking problem
- Replies: 5
- Views: 1612
Re: Rendering or masking problem
Using "Expand mask by one pixel" helps a lot, but if that's not good enough, you can always move a reference of the bottom layer to the top and remove its fill, instead of using exclude strokes.
- Thu Nov 23, 2023 5:37 am
- Forum: Bug Discussions
- Topic: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
- Replies: 26
- Views: 8395
Re: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
564KB for a complex file is deceptive, as the file format is actually a zip archive with a much larger file compressed inside. My next guess would be using layer references. Sometime these have been known to get "corrupted." Deleting them and remaking them seems to help in this case. You m...
- Thu Nov 23, 2023 4:32 am
- Forum: Bug Discussions
- Topic: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
- Replies: 26
- Views: 8395
Re: Moho 14.1: Frequent crashes, guaranteed layer selector crash in advanced rig file
I'd start by checking if there are keyframes in the negative timeline: viewtopic.php?t=32714
- Sun Nov 19, 2023 10:00 pm
- Forum: How Do I...?
- Topic: Are Code Based Animations and Triggering Animations with Code Possible?
- Replies: 6
- Views: 2445
Re: Are Code Based Animations and Triggering Animations with Code Possible?
Glad to help. Welcome to Moho scripting.