Hi,
We have a plugin written in actionscript, which is writing data into the labels of each cell in a row of a table, when the user has their cursor in that row:
var cell:Cell = getSelectedCell();
for each (var childCell:Cell in cell.parentRow.cells) {
childCell.insertLabel(labelName, theString);
}
public function getSelectedCell():Cell
{
...
var selectedLayers:Array = doc.selection as Array;
var obj:Object = selectedLayers[0];
if (obj as InsertionPoint != null) {
var ip:InsertionPoint = obj as InsertionPoint;
if (ip.parent is Cell) {
return ip.parent as Cell;
}
} else if (obj as Cell != null) {
return obj as Cell;
}
return null;
}
I'm now writing a C plugin which needs to read this data using IScriptLabel: again, when the user has a cursor in that row.
My problem is that I can't (via the C code) find which UIDRefs the labels would have been stored against by the script as the table doesn't seem to have cell objects in the same way that the script does.
Any ideas on how to get the relevant UIDRefs?
Thanks