Search found 12 matches

by caderial
Sun Apr 13, 2025 3:17 am
Forum: Scripting
Topic: CLI Rendereing in Moho 14.3?
Replies: 1
Views: 186

CLI Rendereing in Moho 14.3?

https://www.lostmarble.com/forum/viewtopic.php?t=1318&sid=34a67a710166dd52a7fe08651bdb7a37 This FAQ is VERY old an dim wondering if 14.3 can do something like this? Also the -r use case could that be used to also run a lua script after opening a file? none of this seems to apply anymore for 14.3...
by caderial
Sun Apr 13, 2025 1:20 am
Forum: Scripting
Topic: Silent Save via script?
Replies: 9
Views: 388

Re: Silent Save via script?

Ah I see, thanks for that! That's actually a clever script synthsin75! It looks like i misunderstood my own issues LOL. Seems my issue lies in how Layer scripts work and their scoping. They cannot trigger the save, only @tool scripts can. I tried using the https://mohoscripts.com/script/LK_EmbedScri...
by caderial
Sat Apr 12, 2025 7:01 pm
Forum: Scripting
Topic: Silent Save via script?
Replies: 9
Views: 388

Re: Silent Save via script?

Any other suggestions from the community? Neither of those options provided by @Greenlaw offer a true silent save operation — they all require human interaction, like clicking a dialog button. That’s why I mentioned I can’t rely on tools like PyAutoGUI. While it could technically simulate the click,...
by caderial
Sat Apr 12, 2025 6:02 pm
Forum: Scripting
Topic: Silent Save via script?
Replies: 9
Views: 388

Silent Save via script?

I doubt it because i have spent days trying. But maybe, JUST MAYBE someone has figured out a way to do this. I need an Unattended way for a no human interaction way of saving a moho file. I am trying to build out a few automations but require the automations to save the file and then close the file ...
by caderial
Sun Feb 16, 2025 6:04 pm
Forum: Scripting
Topic: Dynamic text Replacement in text layers
Replies: 1
Views: 3666

Dynamic text Replacement in text layers

I am in need of assistance, I am seeking to programmatically access a text layers properties panel and change the text dynamically via scripting that is input in the txt input section. For instance I want to replace the text in that "Enter Text" Field with something new programmatically. I...
by caderial
Tue Jan 28, 2025 1:26 am
Forum: Scripting
Topic: Extracting Style information programmatically
Replies: 1
Views: 4919

Extracting Style information programmatically

I am struggleing to find a way to reliably extract the infromation about a style and output it to the lua console. I hoped this would be a simple solution but i keep running into walls, where either i get errored out entirely, or receive no information, or in my latest attempot which i think is clos...
by caderial
Sat Jan 25, 2025 7:17 pm
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Re: Change vector Shapes Fill & Line Color Via JSON

Thnak you so freaking much hayasidist Seriously, You are a god among us lowly scripters lol Yeah I have NO idea why it wont do it without any keyframes and in frame 0, Probably a Limitation of the MOHO API BUT i am okay always ensuring i have some frames even if it is just a static frame in frame 1 ...
by caderial
Sat Jan 25, 2025 5:42 pm
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Re: Change vector Shapes Fill & Line Color Via JSON

Okay interestingly enough, if i use the: moho:UpdateUI() MOHO.Redraw() and or the MohoView:DrawMe() It should update as expected, However it only updates if i Save, Close and reopen the scene, Or if i don't do that, Directly after running the script i can click each layer 1 by 1 in the layers panel ...
by caderial
Sat Jan 25, 2025 4:27 pm
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Re: Change vector Shapes Fill & Line Color Via JSON

Okay i have it SORT of working, i will eventually need to add a file dialog popup to supply a JSON file that dictates what styles to find and then swap but for ow i'm trying to at least get this rudimentary version working to prove out the concept: Here is a GDrive Link to my working file: https://d...
by caderial
Fri Jan 24, 2025 5:33 pm
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Re: Change vector Shapes Fill & Line Color Via JSON

So I have had this older version of the script working for some time now, and its still works. but i realized a major shortcoming for our specific needs. So now i am exploring alternative route to achieving the color change utilizing the styles. However i havent been able to find any information spe...
by caderial
Mon Jul 15, 2024 10:15 am
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Re: Change vector Shapes Fill & Line Color Via JSON

Thanks for the reply, hayasidist! I actually figured i out last night before bed and it as how i was accessing the RGB Values and setting them, I tweaked the code a lot more since, and working code now runs via another script instead of a direct dialog pop up for the json: This solution can be augme...
by caderial
Sat Jul 13, 2024 9:46 pm
Forum: Scripting
Topic: Change vector Shapes Fill & Line Color Via JSON
Replies: 10
Views: 9752

Change vector Shapes Fill & Line Color Via JSON

Moho Version 14.2 Windows 11 I am not a scripter, i know very basic Scripting in Lua and have experience in hmtl, css ,and some c++ and C# basics. So Im not at all a programmer, but i have gotten this far so far with the help of the amazing Mohoscripting.com ( Huge Shoutout!!!) and GPT4o, and Shout ...