In Blender 2.81
, I have a linked collection, and I want to apply a transformation over it. In the UI I just select the empty , so when I scale, translate or rotate the empty
the liked data experiences the transformations too.
By the other hand, to do it with bpy
, for objects is:
# object.type = 'MESH'
object.data.transform(transformMatrix)
But when I try to do it over an empty
type:
# empty.type = 'EMPTY'
empty.data.transform(transformMatrix)
I get the error: 'NoneType' object has no attribute 'transform'
because the empty's data
property is None
.
Is there a way to apply the transformations over empties? If there isn't how can I archive the same results?
I need to keep the collection linked because the source file changes quite often.
Thank you.