1
$\begingroup$

I have a quick question for anyone who may know...

I have in my scene multiple objects and I want to render each of them individually.

Is there any possibility to render each of them individually without putting them one by one in another layer and rendering it?(I have 58 objects...) I want to make an animation in 58 frames where in every frame there will appear just one of them.

I've put a unique index on every object, and I want for example... in frame 1 to display just the object with index 1 and so on..

If anyone knows please tell me, thx :D

$\endgroup$
  • $\begingroup$ I cant put 58 objects... each of them in another layer... rly now $\endgroup$ – J.D Apr 23 '16 at 13:20
  • $\begingroup$ You have one for every single frame?? You can use the material index pass in compositing, but I think there is probably a better way to do what you are doing. We need more information :/ $\endgroup$ – VRM Apr 23 '16 at 13:20
  • $\begingroup$ If you need to use the material index pass, I can write an answer later tday. $\endgroup$ – VRM Apr 23 '16 at 13:22
  • $\begingroup$ I have an electronic scheme and I need each of his elements in another image... How can I render it using material index? $\endgroup$ – J.D Apr 23 '16 at 13:28
  • $\begingroup$ Do they overlap? $\endgroup$ – VRM Apr 23 '16 at 13:30
2
$\begingroup$

You can easily do this by assigning an Object ID index to each object that corresponds to the frame in which you want the object to appear.

Then in the compositor, you set the alpha channel using the IDMask node. The trick is to then add a driver to the Index value so that it uses the frame number as the Index value on each frame change.

enter image description here

To add the driver, right click on the Index field in the ID Mask node, and select Add Driver. Then, with the node still selected, open the Graph Editor and switch to Driver view. The default driver type is Scripted Expression, and all you need to do is enter the value "frame" in the Expr field of the driver settings. Now when you change the active frame on the timeline, the ID Mask node will update the alpha channel to filter out all other objects and just show the object with the Object Index ID that matches the current frame number.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.