Console/alert feedback

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Post Reply
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Console/alert feedback

Post by ernpchan » Mon Aug 31, 2015 10:47 pm

I'm trying to get into ASP scripting and unfortunately I'm not familiar with lua. I've got experience with AE's javascript and lscript/python in LightWave.

What's the equivalent of printing or alerting back information for ASP so I can see what variables are doing?

Thanks.

[edit]

It's basically a print statement.

Code: Select all

print (string)
And I found the console window, it's under Window>Lua Console.

Duh.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
User avatar
synthsin75
Posts: 7103
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Console/alert feedback

Post by synthsin75 » Tue Sep 01, 2015 1:19 am

local var = "string"
print(var)
print("string")


Check out how some of the script writing menu scripts work...or any tool for that matter.
hayasidist
Posts: 2122
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Console/alert feedback

Post by hayasidist » Tue Sep 01, 2015 1:29 am

and just in case you haven't found them ...

LUA docs are here: http://www.lua.org/manual/5.2/
and scripting info is here (as well as elsewhere): http://ASLua.com/ (see also viewtopic.php?f=12&t=28021)

==
Also:
print ("string1" .. "string2") concatenates

local i = 6
-- the following work as expected
print (i)
print ("string", i)
Post Reply