Where to find object's custom properties

Hi all,

Is there a way to get all the custom properties of an object? Let’s say we did this:

myObject[“prop1”] = 1.0
myObject[“prop2”] = 2.0

Can we then enumerate these properties, eg something like this:

foreach propKey in myObject.propKeys:
print(str(propKey), “:”, str(myObject[propKey]))

I could go through an exhaustive list of possible property names, but I’d rather not.

Thanks,
g


for key,value in myObject.items():
     print(key, ":", value)

Ah, of course.
Thanks, pink vertex!