Object position changes in render

Hi!

I’m having one of those nightmarish freelance jobs where the dealine is approaching and something, that I thought would be rather simple, is giving me all sorts of weird problems. I would really appreciate any input on this problem since I’m getting tired and might not think logically about the issue.

So here’s the thing:

I have object A that is parented to object B (in order to have local z-axis rotation for A).

I’m also animating the position of B (which naturally also moves the child A).

The weird part is that after I got everything in the right position in the 3d-view and render (using cycles) object A is rendered in a different location than where I just saw it with my own eyes before the render. It looks like A is rendered in the location of it’s parent B and not the offset where it should be!

Your first guess might be that I moved the position of the object and forgot it has keyframes (which would override any change in location). But I am indeed moving the playhead in Blender before rendering, which should confirm that the issue is not that.

Any, and I do mean any, tips are highly welcome!

EDIT:
Let me add this: If I delete the parent object, then everything works normally. The object renders at the same spot where it appears in the 3dview. But I need the parent to have local axis rotation… Weird stuff…

Hmmm looks like I might be onto something now… The problem might actually not be with the position but rather with the object showing trought the other object (which might give the illusion of an incorrect position)… Maybe is should check my compositing and see if I can solve the problem there…

Oh yes! That was it! I needed to define a mask layer in the layer settings for my render layer. What a relief! :slight_smile:

Ps. I have noticed that it seems to ALWAYS help to write a post on the forums even if no one answers. This forces you to think more clearly about the problem and helps you solve it! :slight_smile: