How does Lua Set() work?

BECOME PART OF THE COMMUNITY - Sign up here
  • Hello together,

    In the Lua Functions List I've found an entry for the Set() function:

    Set(light_userdata:handle,string:property_name,string:property_value): nothing

    Lua Function List - grandMA3 User Manual - Help pages of MA Lighting International GmbH

    But I can't do something with it. It alwasy throws this Exception in the System Monitor: "attempt to call a nill value (global 'set')"

    E.g. following Code leads to this (Sequence 1 exists and is accessible via Lua)

    function seqStuff()

    local mySequence = DataPool().Sequences[1];

    Set(mySequence, "name", "test23");

    end

    return seqStuff;

    Knows anybody how this works or isn't it implemented at this time? It would help a lot to keep the CommandLine Clean when setting many Properties via Lua.

    Thanks in advance!

    Felix

  • Set is not a global function, it is part of the object methods found in the Obj library:

    Lua "Echo(type(Obj.Set))"

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!