PDA

View Full Version : Variable NetRemote in Girder



sonata31
January 29th, 2008, 09:20 AM
How get the value of a variable NetRemote in Girder ?

Rob H
January 29th, 2008, 11:55 AM
I wouldn't recommend doing it to be perfectly honest. It is possible (but not synchronously), by using NetRemote.RunLua to get NR to call ExecuteAction to send the value to Girder, but it's not fun.

Can't you maintain the variable in Girder instead? What are you trying to do?

sonata31
January 29th, 2008, 03:10 PM
I wouldn't recommend doing it to be perfectly honest. It is possible (but not synchronously), by using NetRemote.RunLua to get NR to call ExecuteAction to send the value to Girder, but it's not fun.

Can't you maintain the variable in Girder instead? What are you trying to do?

To synchronise a variable NR.Volume in NetRemote client on pda and a variable in Gider on the PC : I cannot use MediaBridge for this because the volume on my PC is modified by a plugin VST

Rob H
January 29th, 2008, 04:17 PM
Ah, okay, that's not so difficult then - try


NetRemote.RegisterVariableWatch('NR.Volume', NetRemote.GetPlugin('Girder'))

sonata31
January 30th, 2008, 12:50 AM
Ah, okay, that's not so difficult then - try


NetRemote.RegisterVariableWatch('NR.Volume', NetRemote.GetPlugin('Girder'))

With this code, when the variable is modified in NetRemote on my PDA, how get the value in Girder on my PC ?

Rob H
January 30th, 2008, 02:20 AM
You'll get a COM server event at the Girder end - try it and watch the logger.

sonata31
January 30th, 2008, 02:37 AM
You'll get a COM server event at the Girder end - try it and watch the logger.
In Log Display : Communication Server, NR.Volume
When I put the mouse on NR.Volume I get : 2500, 192.168.1.11, -78
-78 is the value of NR.Volume, how to get it in a script lua in Girder ?

Rob H
January 30th, 2008, 02:46 AM
If this is a scripting action or is called from one then you can access the -78 from pld3.

Otherwise you can register an eventhandler function in Lua using gir.RegisterEventHandler() (see the help/manual)

sonata31
January 30th, 2008, 03:13 AM
If this is a scripting action or is called from one then you can access the -78 from pld3.

Otherwise you can register an eventhandler function in Lua using gir.RegisterEventHandler() (see the help/manual)

I am lost, an exemple please

sonata31
January 30th, 2008, 03:20 AM
I am lost, an exemple please

I use NR.Volume like an event ?

Rob H
January 30th, 2008, 03:44 AM
Yes, just drag it from the logger to your scripting action.

sonata31
January 30th, 2008, 04:45 AM
Yes, just drag it from the logger to your scripting action.

Ok, it's good, you are a chief

Thank You