08-27-2021 07:59 AM - edited 08-27-2021 08:02 AM
Hi,
I would like to insert by "Add Segment" an additional item directly under the currently selected Segment B :
This is in general feasible with the AddItem Invoke Method :
In order to place the item in the same hierarchy I use the Invoke Method "Get Parent" - but of course the new item is then placed as the first one - and not _under_ the selected "Segment B" item - because ChildPosition is by default "0".
So my question is : How can I derive from the information that I have with regard to the selected/active Tag the Child Position ?
(or is there maybe another - smarter - way to do what I want to do : to insert on the same hierachy level an item _under_ the currently selected one)
08-27-2021 08:42 AM
OK - found a way by "Search 1D array" on "All tags" property node for the selected tag :
Maybe it might help others - therefore dropped it here ...
If there is a nicer / better way please let me know ...