*On 17/04/2015 at 07:41, ***xxxxxxxx** wrote:

Hello,

all you need to do is to handle the matrices of the objects. When you say that the plane should be "parallel" to the ground that means that the plane should not be rotated in world space, right?

So the world space rotation should be zero. The world space rotation of the plane is the result of the world space rotation of the parent plus the local rotation of the plane relative to the parent. So the world space rotation of the plane is zero when the world space rotation of the parent is "minus" the local rotation of the plane.

Sine we are handling rotations as matrices there is no "minus" but you can invert the matrix with the standard Python operator "~".

So the most simple code could look like:

```
localPlaneMatrix = plane.GetMl()
op.SetMg(~localPlaneMatrix)
c4d.EventAdd()
```

your final code may depend on your actual situation and the complexity of your hierarchy.

best wishes,

Sebastian