Hey there,
I’m looking for a way to show certain values of my objects in the 3D menu. For example the z-Value of an Cube.
And to update if the value changes?
I tried this in the Game Engine, but it doesn’t update:
import bpy
import bge
Cube = bpy.data.objects['Cube']
a = Cube.location[2]
Text = bpy.data.objects['Text']
bpy.context.scene.objects.active=Text
own = bge.logic.getCurrentController().owner
own.text = str(a)