Just as a side note I always found that your best question is still → https://forum.renoise.com/t/help-detect-son-member-inside-group-that-is-other-group-for-clone/47061
Checking this out.I think there is a simple way. Check if the selected track does not have note columns. If the track selected do not have note columns is not a Track, and if it is within a Group, it must be a Group.A Group can only contain Groups or Tracks ^_^.Confronting the cloning of whole groups is a challenge for me.Until Taktik does not update to the next version of Renoise (3.1.1), I should not try. The next version will have improvements related to a bug in the groups.
Related:https://forum.renoise.com/t/fixed-cloning-track-group-assigns-new-colors-other-things/47011