theguywiththefunnyhair
November 27th, 2006, 12:30 PM
Hi,
I've struck a problem that i cant explain and cannot fix. I'm using a function in girder to send a table to NR's Lua environment. I have 2 methods of building the table before sending it but in the end (before sending) they both produce the same result. When i send the tables to NR the tables built using the first method are fine but using the second are a bit screwy.
I have captured these tables in Girder before sending and the there is no problem at all at that end so i think (guess) the problem lies with NR.
the function i use to send the tables is this
local function SendAMG2NRLua(sendto,tosend)
if AMGINFO.location == location then
print("sending ",tosend," to ", sendto)
NetRemote.SetVariable("AMG."..sendto, tosend)
end
end
This code is called twice each time the script runs, once to send the album list and once to send the track list. The main difference between the method that works and the method that doesnt is the function would be repeated faster for the one that deosnt, i was thinking this may be a factor.
I am attaching images of the results i get.
Thanks
Dan
I've struck a problem that i cant explain and cannot fix. I'm using a function in girder to send a table to NR's Lua environment. I have 2 methods of building the table before sending it but in the end (before sending) they both produce the same result. When i send the tables to NR the tables built using the first method are fine but using the second are a bit screwy.
I have captured these tables in Girder before sending and the there is no problem at all at that end so i think (guess) the problem lies with NR.
the function i use to send the tables is this
local function SendAMG2NRLua(sendto,tosend)
if AMGINFO.location == location then
print("sending ",tosend," to ", sendto)
NetRemote.SetVariable("AMG."..sendto, tosend)
end
end
This code is called twice each time the script runs, once to send the album list and once to send the track list. The main difference between the method that works and the method that doesnt is the function would be repeated faster for the one that deosnt, i was thinking this may be a factor.
I am attaching images of the results i get.
Thanks
Dan