I have a kind of theoric question.
I've registered a
PropertyGroup Class to the
GreasePencil class/type, lets call it
At the same time, this Property_A has Collection Property with different elements.
(So, I have an structure like):
My question is:
Having an element/instance of that collection, is it possible to know/get the original Grease Pencil where it is stored?
Some kind of tracing back where it belongs?
I'm new and Im not sure how bl_rna works, but maybe some kind of just getting the name of the Grease Pencil where the property is stored, so I can get it via
(I need this since for some methods, I accesed the Grease Pencil by the active Grease Pencil. But now I have to loop over all the grease pencils (using
bpy.data.grease_pencils to change different things, and since those methods use the active GP, they dont work. So Im looking to replace that code for the thing Im asking).
Edit: Reformulating my question (maybe in a simpler way), I want to kind of get the data path of a property
So if I have
element_zero = a_grease_pencil_object.property_a.collection
somekind of method that could make something like:
And I get kind of:
So I know that I could get the name of the Grease Pencil object where it is from.
Thank you so much for the help, much appreciated!