How to get selected DescId and BaseList2D at the same time
-
I found the way to get the selected DescID from the Attributes viewer (DescriptionCustomGui).
However when viewing nested NodeDatas it is not clear to which NodeData the DescID belongs.
For example Instance Object has a "Reference Object". Basically a linkbox. When you open it, you can select attributes in there, however it is then not clear to which NodeData this DescID belongs to: the Referenced Object, or the Instance Object itself.BaseContainer selection; RTViewer->GetDescIDSelection(selection); if (auto data = selection.GetIndexData(0)) { DescID* desc = reinterpret_cast<DescID*>(data->GetCustomDataTypeI(CUSTOMDATATYPE_DESCID)); // How to know which NodeData object this belongs to? }