Filename of currently open .moho file?
Moderators: Víctor Paredes, Belgarath, slowtiger
Filename of currently open .moho file?
Is the current .moho filename available to a Lua script anywhere ?
I've been looking through the scripting documentation, but I can't see it. That could mean it's not available, or I'm just not looking hard enough.
Regards, Myles.
I've been looking through the scripting documentation, but I can't see it. That could mean it's not available, or I'm just not looking hard enough.
Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
-- Groucho Marx
If (that should probably be when) Lost Marble reads this, I'd also like to add my vote for this (the full filename path returned to a Lua script, and perhaps nil or an empty string if unsaved) as a feature request, please.
I was looking at it as a simple way to call a revision control system (via the command line) for keeping multiple revisions of a .moho file, but it would also probably make it possible to set up a copy and rename (adding an incrementing number, perhaps) script for a cross-platform equivalent.
Regards, Myles.
I was looking at it as a simple way to call a revision control system (via the command line) for keeping multiple revisions of a .moho file, but it would also probably make it possible to set up a copy and rename (adding an incrementing number, perhaps) script for a cross-platform equivalent.
Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
-- Groucho Marx
- Lost Marble
- Site Admin
- Posts: 2355
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
There's the API script by Lost Marble, and my modified version (I just tested it and it still works with Anime Studio Pro).rylleman wrote:Are there any other way than by the somewhat inadequate scripting guide to find out what lua commands and strings that are available to Moho?
Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
-- Groucho Marx
Thank's, your mod was great with the html-output!myles wrote:There's the API script by Lost Marble, and my modified version
(I tried LMs APIscript before but the lua-console got me very annoyed so I quickly forgot about that...)
Do I dare ask you to do the same mod. to the print globals script?
The list gets to long to display in the lua-consol so the first part isn't displayed (I guess that's one of the reasons you did your API-mod?).
-david
Hi David,
there's a couple of commented ( beginning with --) lines in the API script that produce an in-depth global variables list in the API output file - just take off the double dashes (oh, and maybe move the 2 lines above the HTML closing tags line above it). Because my version drills down into tables, there is a lot of overlap with the API values which also show up in the global variable tables.
Here's a global variables version that just does the global variables without drilling down into tables.
Regards, Myles.
there's a couple of commented ( beginning with --) lines in the API script that produce an in-depth global variables list in the API output file - just take off the double dashes (oh, and maybe move the 2 lines above the HTML closing tags line above it). Because my version drills down into tables, there is a lot of overlap with the API values which also show up in the global variable tables.
Here's a global variables version that just does the global variables without drilling down into tables.
Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
-- Groucho Marx