On 22/10/2014 at 11:53, xxxxxxxx wrote:
Is there a way to get all objects with a filter without having them selected?
That command requires them to be selected.. I currently have a script that calls the command to select all objects, grab the objects I want, the deselect all. But it gets messy when I want to have undos.
Is there a better way?
Heres the code I currently have..
def getAllNulls() : doc = c4d.documents.GetActiveDocument() c4d.CallCommand(100004766) #select all allNulls = doc.GetActiveObjectsFilter(True, type=5140, instanceof=True) c4d.CallCommand(100004767) #deselect all return allNulls