Search found 2628 matches

by hayasidist
Sun Dec 03, 2023 6:41 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 29173

Re: How do I create a new moho file and copy a layer to it via script?

Thanks Wes. I'll aim to put a bug report together on this re FileClose with an active Lua console window... I do wish we could do this without Ctrl+N and running the script twice, because the purpose of this script was actually to keep the animator focussed on the shot. Just hit a button and the lay...
by hayasidist
Sun Dec 03, 2023 5:46 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 29173

Re: How do I create a new moho file and copy a layer to it via script?

I've been looking at this (albeit behind the curve!). I've come to the conclusion that FileClose() doesn't work as expected and I'd appreciate some other pairs of eyes on this. Given the requirement is to save a vector layer, I focused on copy/paste. This works right up to the point where FileClose ...
by hayasidist
Wed Nov 29, 2023 9:17 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 29173

Re: How do I create a new moho file and copy a layer to it via script?

The problem is (I think...), you can't really save another MohoDoc, even if you Load it. As moho:FileSave() and moho:FileSaveAs(path) don't take a MohoDoc argument and will always assume you want to save the current moho.document. ? can you set moho.document to be the one you want and then moho:Fil...
by hayasidist
Wed Nov 29, 2023 4:57 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 29173

Re: How do I create a new moho file and copy a layer to it via script?

hope this is useful ... it is mostly guesswork ... take a look at LM_scatterbrush.Lua That does "local doc = moho:LoadDocument(docPath)" calls and then uses vectors from the layers in one of the loaded documents. SO .... (supposition here 'cos I've never actually tried this) ... assuming F...
by hayasidist
Fri Nov 24, 2023 8:35 pm
Forum: General Moho Discussion
Topic: One of the layer color turned into black color in moho pro 14.1
Replies: 4
Views: 1835

Re: One of the layer color turned into black color in moho pro 14.1

getting "access denied" when trying to open the image.
by hayasidist
Sun Nov 19, 2023 2:32 pm
Forum: How Do I...?
Topic: "Set Layer Start Time" Problems
Replies: 4
Views: 1588

Re: "Set Layer Start Time" Problems

working as expected here (debut 14) for layer start time. Note that layer start time is NOT animation start time. If you want your animation to start at (say) frame 30 then Alt-Left click the timeline at 30 (and Alt-right click sets the animation end time). Or use the project settings dialogue (from...
by hayasidist
Sat Nov 18, 2023 10:43 pm
Forum: How Do I...?
Topic: Are Code Based Animations and Triggering Animations with Code Possible?
Replies: 6
Views: 2548

Re: Are Code Based Animations and Triggering Animations with Code Possible?

The thing about moho is that it's not a "playback" program; it's an "editor" program. So you can create all the elements to do what you want and (as Wes as indicated) there are ways to get the program to jump around the timeline and play selected sequences BUT: you're playing bac...
by hayasidist
Sat Nov 18, 2023 4:24 pm
Forum: How Do I...?
Topic: "Set Layer Start Time" Problems
Replies: 4
Views: 1588

Re: "Set Layer Start Time" Problems

move the timeline cursor to the frame you want the layer to start then invoke the command... the green arrowhead will move and if you look at the sequencer you'll see the layer with its green "starting line"
by hayasidist
Thu Nov 16, 2023 9:44 pm
Forum: General Moho Discussion
Topic: MOHO14 user manual
Replies: 39
Views: 66560

Re: MOHO14 user manual

I tried a quick test and It appears to work for me in Chrome. When I enter a word in the search box, I get a list of topics to choose from.... I think it only finds topic headings and doesn't search the body of each page -- which is fine if you want the topics with (e.g.) "Bone" in the ti...
by hayasidist
Thu Nov 16, 2023 11:51 am
Forum: How Do I...?
Topic: Can I 'bake'a pose
Replies: 9
Views: 3153

Re: Can I 'bake'a pose

So in short, it doesn't work with images (I saw the unsupported section) or uses the new bone positions as the basis of the new rig. It's merely a vector-oriented script. hmm -- so whole rig on (say) frame 30 that has been transformed - script to: clone the layer structure, apply all the animations...
by hayasidist
Wed Nov 15, 2023 10:15 pm
Forum: How Do I...?
Topic: Can I 'bake'a pose
Replies: 9
Views: 3153

Re: Can I 'bake'a pose

TheMinahBird wrote: Wed Nov 15, 2023 5:45 pm I noticed that it doesn't support Warps, is that intentional? Or a limitation/oversight?
warps weren't around when that script was made .. so limitation -- but I'll add it to the list of things to review / update.
by hayasidist
Sun Nov 12, 2023 1:22 pm
Forum: How Do I...?
Topic: Animate cigarette smoke without particles
Replies: 7
Views: 4247

Re: Animate cigarette smoke without particles

are you using 14? take a look at Victor's tutorials on liquid shapes.


and this example (but not with a moving source) https://youtu.be/wly0Oz5DVQg based on it
by hayasidist
Tue Nov 07, 2023 3:40 pm
Forum: Scripting
Topic: Moho Scripting for Beginners
Replies: 9
Views: 4025

Re: Moho Scripting for Beginners

@hayasidist : Thank you for the code snippet and suggestions, and it works. Although, I have several questions: 1. As I understand, then crvData table is inserted with new table for each point it iterates through, right? To store the rest of the curve data, should I edit crvData definition to {cId=...
by hayasidist
Mon Nov 06, 2023 10:11 pm
Forum: Scripting
Topic: Moho Scripting for Beginners
Replies: 9
Views: 4025

Re: Moho Scripting for Beginners

as with all code, there are many ways to tackle a problem. Here's your original with my suggestion for how to get it working (and gives scope for expansion by adding extra cXXX fields to the base table) [It's based on an approach I use "all the time" when I have an entity that has lots of ...
by hayasidist
Mon Nov 06, 2023 2:38 pm
Forum: Scripting
Topic: Moho Scripting for Beginners
Replies: 9
Views: 4025

Re: Moho Scripting for Beginners

I actually use notepad (which gives me most of what I want) even thought it's by no means the best -- it's a very basic text editor with no language support at all. I've never even bothered to get notepad++. I'll defer to others who will have their own recommendations. I'm concerned that you're work...