hw_mv — Moves objects
Moves the specified objects from a collection to another.
The connection identifier.
An array of object ids.
The source collection id.
The target collection id. If set to 0 the objects will be unlinked from the source collection. If this is the last instance of that object it will be deleted. If you want to delete all instances at once, use hw_deleteobject().
Returns the number of moved objects.