This question already has an answer here:

This image that i'm working on in cycles render is almost done but I stuck at the part of the block behind the cubes. It has a shadow on the white plane. The only thing that's wrong is that I don't want the plane to show up. Only the shadow. In "film" I already set the Transparent to "true" and in the compositing I did the thing with using only that layer and than substract and invert and all of that. But I can't seem to find any solutions. It's a movie clip so the compositing is more than just that. enter image description here


marked as duplicate by Gwen, gandalf3 cycles Dec 25 '15 at 0:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.