Hello everyone,
this should be a simple one, but I just can’t figure out.
my hierarchy looks like this image. 
what I want to do is when I select the bottom pSphere1 and run script
can select the parent locator which with layout_ prefix.
The top 2 locator won’t change but the geo may have different grouping by case.
my thought was maybe use listRelatives command and conditions but no luck…
I am total newbie in scripting, any tips would help, thanks!

