Console/alert feedback

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

Moderators: Víctor Paredes, Belgarath, slowtiger

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

Console/alert feedback

Post by ernpchan »

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: 9968
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Console/alert feedback

Post by synthsin75 »

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


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

Re: Console/alert feedback

Post by hayasidist »

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