NetworkObject.add_object_to_collection

NetworkObject.add_object_to_collection(obj, name=None, do_unlink=True)[source]

Add an object to a collection.

Parameters:
objbpy.types.Object

The Blender object.

namestr, optional

The name of the collection to which the object should be added.

Returns:
bpy.types.Collection