PDA

View Full Version : AvidUtils List in Designer


Northernmost
January 11th, 2006, 01:55 PM
I'm having real trouble getting an AvidUtils drop down list to work in NR :( I've tried searching and reading the documentation but it seems to be out of date as far as Designer goes. Maybe I'm just being thick :oops:

My setup (all on win32):

NetRemote - 1.5.1.53
Designer - 1.0.0.19
drv_avidutils.dll - last modified 18 December 2005, 10:56:00 and is 61,440 bytes in size (the file properties doesn't display a version tab which seems odd).

I've got a button with a single "Dropdown: List variable" action assigned to it. In the plugin action there's 3 parameters: Variable, ListVar and GrowSize.

I'm assuming the Variable parameter is for the name on the variable that gets changed when you select an item from the list and ListVar is for the items to appear in the list.

I've tried using every combination I can think of for these 2 parameters but it's always the same result - the list control appears in NetRemote but always has a single selected item "CCF Error!".

Can anyone pretty please tell me what to enter in to the designer to get a list with 2 items in it: "Videos" and "TV". Selecting either of these should change a variable named "DVDLib" to the displayed value of the selected item?

I'm starting to think perhaps I've got the wrong plugin dll but, AFAIK, the latest NR installer includes it by default. Or, like I said, perhaps I'm Captain Thicko. Either way... any help would be much appreciated :D

Rob H
January 11th, 2006, 02:58 PM
You need to have a NetRemote variable that contains the items to display - this is the one named in the ListVar parameter.

Try adding the following to you CCF's .lua OnCCFLoad() function :-


NetRemote.SetVariable('ListVarName', 'Videos/TV')


Where ListVarName is the same as the one specified in the AvidUtils dropdown.

Northernmost
January 11th, 2006, 03:23 PM
Gotcha :) Many thanks

For the record what worked for me was to set the Designer button action parameters to:

Variable - DVDLib
ListVar - DVDLibItems

and set both their values in OnCCFLoad():
NetRemote.SetVariable('DVDLibItems', '/Videos/TV/')
NetRemote.SetVariable('DVDLib', 'Videos')
I'd been thinking you could enter the list items in the Designer's ListVar parameter itself. so I was being thick after all ;)

Rob H
January 11th, 2006, 03:29 PM
Actually, that declaration shouldn't have any impact, since that declares two variables in the Lua variable space, while the NetRemote.SetVariable() manipulates variables in the NetRemote variable space, so there's currently no link between the two - unless Ben's been making undocumented changes! ;)

Northernmost
January 11th, 2006, 03:38 PM
So it does. I've edited the code above to remove them :oops: Hey-ho, at least the list is working now :D