
Search found 8 matches
- Sun Jan 16, 2022 12:24 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Thank you so much. 

- Sat Jan 15, 2022 10:50 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Hello Dears.
Yes. Changes in JSON file seem better and more optimal. To automate tasks.
But using a runner after opening each file is also very interesting.
Is there an example of running a script in Moho?
I have not used it yet.
Thank you very much.
Yes. Changes in JSON file seem better and more optimal. To automate tasks.
But using a runner after opening each file is also very interesting.
Is there an example of running a script in Moho?
I have not used it yet.
Thank you very much.
- Fri Jan 14, 2022 10:53 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Thank you for your response. Yes, I have already written code by C # to change the JSON of each file. Maybe it's better to use this method. Of course, it is very difficult to build a comp with this method and the desired settings. But there is no choice. Thanks again for your help. I will use your h...
- Fri Jan 14, 2022 3:55 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Hello. Thank you for your help. I tried in many ways. Unfortunately, the moho.document is not updated. And the same changes are applied to the first file. But the last file, which is opened, is saved. ScriptName = "MJ_run_submit" MJ_run_submit = {} function MJ_run_submit:Run(moho) local di...
- Fri Jan 14, 2022 12:12 am
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Hello. Thank you for your help. I used your algorithm. But here is the problem. If the file that was opened first is closed, Moho will crash and the code will not continue. And if the first file is left open and not closed, the comp is created only on the first file. And the next files are only open...
- Thu Jan 13, 2022 8:50 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
Thank you very much. I will try this. Thank you.
- Thu Jan 13, 2022 8:13 am
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
Re: lua script for documents manger
I want to open my files one by one and create a comps for them and then save it. thanks Of course. I want to change 20 files in one folder. With one button. I do not know how to manage the namespace files. for k,v in pairs(listPathfiles) do moho:FileOpen(v) CreateComp(moho) moho:FileSave() moho:File...
- Wed Jan 12, 2022 4:46 pm
- Forum: General Moho Discussion
- Topic: lua script for documents manger
- Replies: 20
- Views: 3028
lua script for documents manger
Hi to all Moho experts and users. I need your help in writing a script with Lua for Moho. I have an open file first. I want when I run the code. Open another file and make changes to that document and save it. But all my changes apply to the first file. And the second file will be saved. Thank you