I searched a lot in the forum and still couldn't find the answer. But in c4d, the right-clicked the activated object in the gui can select or remove the activated object . Obviously it should have a way to get the activated object.
Thanks for any help.