adding an obj to new layer in blender 2.79 and linking the existing object to the new collection in blender 2.8 same? I was following a tutorial for fish animation. In the tutorial they are adding a plane and adding that plane into separate layers. Then all operations are performed on that plan. So in Blender 2.8 how to achieve that? I tried by creating new collection and linking the plane object to the new collection ? Is this the right way to do? 

My purpose is to hide the plane object while rendering animation 
Can anyone help me to solve that with python ?
My aim was to hide the plane object while rendering. I achieved by adding plane and fish in different collections and unlinking the plane object from all other collections and then disabling that specific collection for rendering.