Coder Social home page Coder Social logo

ma2-api's Introduction

GrandMA2 LUA API

Type definition file in EmmyLua format:
gma.def.lua: https://github.com/exscriber/Ma2TypeDef/blob/master/gma.def.lua

Third party documentation available at: http://static.impactsf.com/GrandMA2

Demo code provided by MA Lighting with GrandMA2 onPC installation at:
C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9\plugins\plugin_1.lua

                           gma.sleep(number:sleep_seconds)
                           gma.echo(all kind of values)
                           gma.feedback(all kind of values)

string:build_date        = gma.build_date()
string:build_time        = gma.build_time()
string:version_hash      = gma.git_version()

                           gma.export(string:filename,table:export_data)
                           gma.export_csv(string:filename,table:export_data)
                           gma.export_json(string:filename,table:export_data)
table:import_data        = gma.import(string:filename, [string:gma_subfolder])

string:error             = gma.cmd(string:command)
                           gma.timer(function:name,number:dt,number:max_count,[function:cleanup])
number:time              = gma.gettime()
string:result            = gma.textinput(string:title,[string:old_text])

bool:result              = gma.gui.confirm(string:title,string:message)
                         = gma.gui.msgbox(string:title,string:message)

number:handle            = gma.gui.progress.start(string:progress_name)
                           gma.gui.progress.stop(number:progress_handle)
                           gma.gui.progress.settext(number:progress_handle,string:text)
                           gma.gui.progress.setrange(number:progress_handle,number:from,number:to)
                           gma.gui.progress.set(number:progress_handle,number:value)

number:value             = gma.show.getdmx(number:dmx_addr)
table:values             = gma.show.getdmx(table:recycle,number:dmx_addr,number:amount)

number:handle            = gma.show.getobj.handle(string:name)
string:classname         = gma.show.getobj.class(number:handle)
number:index             = gma.show.getobj.index(number:handle)
number:commandline_number= gma.show.getobj.number(number:handle)
string:name              = gma.show.getobj.name(number:handle)
string:label             = gma.show.getobj.label(number:handle) -- returns nil if object has no label set
number:amount_children   = gma.show.getobj.amount(number:handle)
number:child:_handle     = gma.show.getobj.child(number:handle, number:index)
number:parent_handle     = gma.show.getobj.parent(number:handle)
bool:result              = gma.show.getobj.verify(number:handle)
bool:result              = gma.show.getobj.compare(number:handle1,number:handle2)

number:amount            = gma.show.property.amount(number:handle)
string:property_name     = gma.show.property.name(number:handle,number:index)
string:property          = gma.show.property.get(number:handle,number:index/string:property_name)

string:value             = gma.show.getvar(string:varname)
                           gma.show.setvar(string:varname,string:value)

string:value             = gma.user.getvar(string:varname)
                           gma.user.setvar(string:varname,string:value)
number:object handle     = gma.user.getcmddest()
number:object_handle     = gma.user.getselectedexec()

string:type              = gma.network.gethosttype()
string:subtype           = gma.network.gethostsubtype()
string:ip                = gma.network.getprimaryip()
string:ip                = gma.network.getsecondaryip()
string:status            = gma.network.getstatus()
number:session_number    = gma.network.getsessionnumber()
string:session_name      = gma.network.getsessionname()
number:slot              = gma.network.getslot()

table:host_data          = gma.network.gethostdata(string:ip,[table:recycle])
table:slot_data          = gma.network.getmanetslot(number:slot,[table:recycle])
table:performance_data   = gma.network.getperformance(number:slot,[table:recycle])

string:type              = gma.gethardwaretype()

ma2-api's People

Contributors

exscriber avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.