Hi Rob, I'm using the script you wrote for me. When the Action list showed the instances as computer names plus ID number it worked fine, but in the new versions of designer and netremote there are now no names in the action list. I wouldn't know what to do with it mate, it occured to me to replace "Network-Master" in the script with the id number of Network-Master in the plugin list, but I would only be guessing. Here's your script.
Code:
local g, gp
g = NetRemote.GetPlugin('Girder')
if g then
gp = g:GetInstance('Network-Master')
if gp == nil then
local gi = g:GetInstances()
if gi then
for id, name in pairs(gi) do
print('Trying '..name)
if name == 'Network-Master' then
print('Matched')
gp = g:GetInstance(id)
break
end
end
end
end
if gp then
print('Setting default instance')
gp:SetCurrent()
else
print("Couldn't find Network-Master")
end
end