Search found 816 matches

by Lukas
Tue Feb 06, 2024 9:40 am
Forum: Scripting
Topic: Is it possible to invoke DrawMe() of an inactive tool?
Replies: 4
Views: 286

Re: Is it possible to invoke DrawMe() of an inactive tool?

KuzKuz wrote: Wed Jan 31, 2024 1:56 am[...] modify all tools.
This is how I've always achieved what I needed. But it would be nice to have it invoked on its own for sure...
by Lukas
Thu Dec 21, 2023 9:32 am
Forum: General Moho Discussion
Topic: Feature request
Replies: 4
Views: 4410

Re: Feature request

That would be useful for sure. Related, but probably needs a node based render system or something else complex: We've often wanted to exclude eyes from the shading when using layer shading on a character in Club Baboo. Basically exclude shapes with black strokes and white fills (the characters have...
by Lukas
Sat Dec 02, 2023 11:34 am
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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

Yeah, that would be a smarter way to go about it if I had to export a lot of different layers from a single moho file to their individual new files, but that's not what we're going to use this for. I do appreciate you guys thinking along though!!! It's intended for situations where we improve rigs o...
by Lukas
Fri Dec 01, 2023 3:22 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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

Thanks guys! 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...
by Lukas
Thu Nov 30, 2023 11:37 am
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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

...I don't think it works? I can't seem to edit the new document at all. For example: moho:FileNew() moho:CreateNewLayer(MOHO.LT_NOTE, false) print(moho.document:Name()) ...creates a node layer in the 'old' document, not in the new one. It also prints the name of the 'old' document, not the new Unti...
by Lukas
Thu Nov 30, 2023 9:43 am
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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...
by Lukas
Wed Nov 29, 2023 7:37 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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. Thanks. I have imported from other MohoDoc's successfully before! But only e...
by Lukas
Wed Nov 29, 2023 4:18 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 20543

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

I'm stuck and am not sure if it's an API or skill limitation... So here we are. I want to create a script that copies the current layer to a new empty document and saves that document in a specific folder. Close the new document and continue working on the original file. After moho:FileNew() is it p...
by Lukas
Wed Nov 29, 2023 9:42 am
Forum: Other Software
Topic: I made some Free Stream Deck Icons
Replies: 7
Views: 3935

Re: I made some Free Stream Deck Icons

Does it have plugins for any software that have the buttons change icons/actions on the fly? Or do you always have to create static keyboard shortcuts or something? I wonder if Moho can somehow tap into a Streamdeck API and have the tools update according to their IsEnabled and IsRelative functions....
by Lukas
Thu Nov 23, 2023 11:17 am
Forum: Scripting
Topic: Change Image Resolution Script
Replies: 12
Views: 6884

Re: Change Image Resolution Script

Please tell me someone has this script and could possibly reshare it? 🥺 Here's my own version that does the same thing, kinda. I'm not sure if it's in a working state and how to exactly use it, it's old and haven't used it in a long time. So you might need to dig around in the code and fix some stu...
by Lukas
Thu Nov 23, 2023 10:22 am
Forum: General Moho Discussion
Topic: Does anyone have experience with CG Wire's Kitsu?
Replies: 2
Views: 3191

Re: Does anyone have experience with CG Wire's Kitsu?

Thanks, I'll check out the Blender addon and how they use it. Not sure if Moho scripts can talk with Kitsu, this is new terrain for me. Currently we run a .lua script to run a .py script that sends info to our renderqueue, but I'm not sure if that's 100% necessary. I didn't write the .py part or the...
by Lukas
Wed Nov 22, 2023 6:40 pm
Forum: How Do I...?
Topic: new layer drawing
Replies: 9
Views: 6310

Re: new layer drawing

… i need visibility to be off before the current frame. does that mean if i create a new drawing on frame 20, i will have to go back to frame zero to turn it off , and then turn it on on frame 20. … 1. Create a new layer. 2. Go to frame 20. 3. Hit my button *TWO* times. (Clicking it only once assum...
by Lukas
Wed Nov 22, 2023 3:12 pm
Forum: How Do I...?
Topic: new layer drawing
Replies: 9
Views: 6310

Re: new layer drawing

I wrote and use this button for situations like this (and more): https://mohoscripts.com/script/LK_LayerVisibility
by Lukas
Wed Nov 22, 2023 2:41 pm
Forum: General Moho Discussion
Topic: Does anyone have experience with CG Wire's Kitsu?
Replies: 2
Views: 3191

Does anyone have experience with CG Wire's Kitsu?

Kitsu is an animation production tracker from CG Wire. It's open source and free if you host it yourself. I'm interested in using it for our productions, but have no experience with it. I was wondering if anyone here has used it. If so, what is your experience with it and would you recommend it? Esp...
by Lukas
Wed Nov 22, 2023 10:11 am
Forum: Scripting
Topic: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro
Replies: 113
Views: 193628

Re: Lost Scripts' Shapes Window (BETA) for Moho 14

Looks fantastic! Going to give it a spin right away