hi everyone.
Iam trying to find the x,y,z of an object inside a model, so I’ve tried to use
model.find(**/object).getPos() . but this command returns (0,0,0).
hi everyone.
Iam trying to find the x,y,z of an object inside a model, so I’ve tried to use
model.find(**/object).getPos() . but this command returns (0,0,0).
A node’s origin (0,0,0) is not always its geometry’s center point.
To get its center :
model.getBounds().getCenter()
problem solved ! thank you