Finding objects with ID's

ObjectID:

import maya.cmds as cmds

for object in cmds.ls(type = ["transform","mesh"]):
    if cmds.objExists(object +".vrayObjectID"):
        print "You have objectID on " + object

I will create a ID manager in my next tool…