[Bf-committers] Python access to linked sensor/actuators/controllers in the logic window

Trouble Maker makers.f at gmail.com
Sat Apr 23 13:13:11 CEST 2011


Looking in the documentation i haven't found a way to know which controller
is linked to a sensor
or which actuator is linked to a controller (and vice versa) with python, it
is only possible to set the link.

Another problem i run in is that after adding a game property (
game_property_new() ), there is no way to have a reference to the property
just added. Right now i'm using context.active_object.game.properties[index]
(where index starts = 0 and is increased of 1 when a new property is added),

but this can work only if the object has no already existing property.

Is there a way to get this things in python?


More information about the Bf-committers mailing list