Hi Matthias,
I am trying to extract the position coordinates of selected objects in the layout. I am using the following code to get the selection.
lv = pya.Application.instance().main_window().current_view()
object_selection = lv.object_selection
The code works fine for single objects (Array instance option disabled).
I am having a problem in a case where I select an instance which is generated with the Array Instance option from the original object.
It does not matter which instance I select, it always returns me the original cell positions.
How do I get the actual positions of the selected instances not the original object's positions?
Best,
Jaspreet
Comments
Hi Jaspreet,
that's not your code. It's just the first two lines. Where is everything else?
Matthias