Search found 18 matches
- Sun Jul 17, 2022 3:48 am
- Forum: Scripting
- Topic: Font size to Moho units
- Replies: 6
- Views: 1442
Re: Font size to Moho units
Seeing text change size with different fonts all at 100% I don't think it's strictly related to the size of the project like Moho points are. Or if they are, it's an equation taking EMs or FUnits. Could be wrong, but if I'm right there would be no way to determine the size without reading the font f...
- Sun Jun 26, 2022 2:00 am
- Forum: Scripting
- Topic: How do I draw a circle?
- Replies: 33
- Views: 3905
Re: How do I draw a circle?
I suppose that depends on the definition of "region". But yes. There are two main screen capture modes, full screen capture and Window specific screen capture. If you want to record an area of the screen and everything that pops into that area you can do a fullscreen capture, then scale th...
- Sat Jun 25, 2022 7:53 pm
- Forum: Scripting
- Topic: How do I draw a circle?
- Replies: 33
- Views: 3905
Re: How do I draw a circle?
I personally just use OBS to record, and Moho to export a region to a GIF or do basic animation highlighting areas. I admit it's not the best, and a little slow at times, but the flexibility cannot be denied.
- Wed Jun 22, 2022 4:08 pm
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Didn't catch they were stored in Radians before posting, did later. XD But it's why I'm double checking everything, changing values, saving, and seeing what the end result is. I'll probably still have the function take degrees and just convert them to radians on the backend. That way creating styles...
- Wed Jun 22, 2022 7:07 am
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Thank you again. I've grabbed examples of every style by making a change, saving the mohoproj file, and searching for the styles. I'm still so new to Lua's tables to make up for the lack of classes (not a fan but I'll get over it xD) but I think I've got a decent one set up to help me create accurat...
- Tue Jun 21, 2022 3:00 am
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Before I forget, I'd be interested in seeing your UUID function, I was planning on using this gist from a github user named jrus. https://gist.github.com/jrus/3197011.
- Mon Jun 20, 2022 10:23 pm
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Ah, I thought a file header of PK looked familiar. I was expecting a binary format. Got very used to dealing with those making scripts for PaintShop Pro. Happy to see it'll load the mohoproj just fine and json is definitely easier. Yeah there are a lot of setting in these files, so I just blindly br...
- Mon Jun 20, 2022 5:58 pm
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Thank you very much ggoblin. I did see and read through that thread. Technically it's what gave me my initial idea. I thought maybe I could create a new *.anme file (since it's a much more simplistic format than *.moho and I don't know of a file format document for either) from lua, then load that d...
- Sun Jun 19, 2022 11:20 pm
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Re: Grab all open documents
Thank you so much for the prompt answer and optional workaround. That's fine. I was hoping there would be a good way to copy a style between two open documents. I was able to successfully copy a style from a document loaded in using LoadDocument(). So that may be the direction I go instead.
- Sun Jun 19, 2022 10:54 pm
- Forum: Scripting
- Topic: Grab all open documents
- Replies: 16
- Views: 2046
Grab all open documents
Hello, I tried looking in the script documents and couldn't find anything that fit so I thought I'd ask just to double check. Is there a way to grab all open documents in Moho? I know the MOHO.document variable points to the document object for the current document. And I know that using "LoadD...
- Mon Jan 10, 2022 1:55 am
- Forum: Scripting
- Topic: Adding dialog UI elements in grid pattern
- Replies: 3
- Views: 1143
Re: Adding dialog UI elements in grid pattern
Excellent. Thank you very much. I have a very inefficient coding workflow where I do everything long form then figure out how to make it smaller with loops and array types. :lol: But the general idea then for the dialog is at least solid, using the UI messages to force a new logic compared to the de...
- Sun Jan 09, 2022 8:01 pm
- Forum: Scripting
- Topic: Adding dialog UI elements in grid pattern
- Replies: 3
- Views: 1143
Adding dialog UI elements in grid pattern
Hello, I'm playing with the UI, trying to learn how it all works together. Still very new to Lua but coming from Python and BASIC languages it's not completely foreign. Took me way longer than it should have to realize the difference between : and . when calling methods. :P Crashed Moho so many time...
- Sun Jan 09, 2022 6:52 pm
- Forum: Scripting
- Topic: Export camera to After Effects
- Replies: 30
- Views: 25649
Re: Export camera to After Effects
Checking the waybackmachine the article points to a webpage that then points to this page - https://aescripts.com/fbx-to-ae/
- Fri Jan 25, 2019 8:35 am
- Forum: Scripting
- Topic: Bounding box around edges
- Replies: 1
- Views: 2185
Bounding box around edges
When I select a layer both in program and in script the boundaries seem focused on the points of the layer and not the curved edges. Just wondering, is there a pre-made routine or option for getting what the boundaries would be around the whole shape curves and all? Right now the curves extend beyon...
- Wed Jan 23, 2019 8:36 pm
- Forum: How Do I...?
- Topic: Bulge in a pipe
- Replies: 5
- Views: 1032
Re: Bulge in a pipe
Wow, that's fantastic. Thank you so much for the example and explanation.
I've seen several posts on here using Smart Warp Meshes for things. Still had not occurred to me to use them this way. Will definitely have to learn more about how they work.
Thanks again.
Levi
I've seen several posts on here using Smart Warp Meshes for things. Still had not occurred to me to use them this way. Will definitely have to learn more about how they work.
Thanks again.
Levi