Hi,
Is there a way to get the "next" object of doc.SearchObject()
method.
As I understand, if there are two objects name cube
. The method will retrieve first cube
in the outliner.
Is there a way to get the next cube
object?
My use case is this:
- Check if there are objects with the same name
- If there are, throw an error. Every object must have a unique name.
I guess I can do this with the traversing objects hierarchy code provided by the plugincafe.
Storing each object name and comparing them with each other.
But it would be nice if I can just do this with doc.SearchObject
so I can shorten the logic.
Regards,
Ben