I'm having difficulty making the getlayoutobjectattribute function to do what I think it's supposed to do: Here are two test scripts and the results. In the first script I ask for the coordinates of the top edge of a portal (the named object) and I display the portal row where a button is located that I clicked to run this script and the coordinates. I have set the 3rd and 4th parameters to 1 and 0, respectively. It works, no problem.
The second script sets the 3rd and 4th parameters to 1 and $Portalrow, respectively, and as you can see the result is blank. What I had expected was the top coordinates of the portal row. What am I doing wrong?