I'm using the BGE to read a custom property that I set in Blender on the default Cube object. For some reason, the property doesn't show up in the BGE? Am I missing something obvious? All the documentation I can find says I can just access it with
obj['propertyName'], but it doesn't work.
cube = bge.logic.getCurrentScene().objects["Cube"] print(cube['min']) # KeyError: 'value = gameOb[key]: KX_GameObject, key "min" does not exist' print(cube.get('min')) # Returns None print(cube.getPropertyNames()) # Empty list print(cube.attrDict) # Empty dictionary
Version is Blender 2.78; to run the engine, I just do