Forum Discussion
9 years ago
"IngeJones;899528" wrote:
Is the following function referring to the object Tuning IDs? And if so, please could you give me an example of use since the existing decompiled scripts don't seem to use it at all.
def get_objects_of_def_id_gen(self, *definition_ids):
for obj in self._objects.values():
while any(obj.definition.id == d_id for d_id in definition_ids):
yield obj
Yes, it is, however you should verify the context of 'self' - I'm assuming that it's the object_manager, and in that case it should return the definition resource list.