This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def GetNextObject(op, op_stop=None): | |
""" | |
Hierarchy iteration helper from https://developers.maxon.net/?p=596 | |
:param op_stop: The object to stop at. Returns None when this object is found. | |
:type op_stop: c4d.BaseObject | |
:param op: the object to get the next node from | |
:return: The next object | |
""" | |
if op is None: | |
return None |