This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/gameengine/PyDoc
Campbell Barton 136d4c34ba deprecate controller.getActuator(name) and controller.getSensor(name) for
controller.actuators[name] and controller.sensors[name]

Made a read-only sequence type for logic brick sensors and actuators which can access single items or be used like a list or dictionary.
We could use a python dictionary or CValueList but that would be slower to create.

So you can do...
 for s in controller.sensors: print s

 print controller.sensors["Sensor"]

 print controller.sensors[0]

 sensors = list(controller.sensors)

This sequence type keeps a reference to the proxy it came from and will raise an error on access if the proxy has been removed.
2009-05-10 01:48:14 +00:00
..
2009-04-05 10:03:23 +00:00
2009-04-24 20:27:04 +00:00
2009-04-13 19:33:22 +00:00
2009-04-15 13:50:56 +00:00
2005-03-25 10:33:39 +00:00
2009-04-24 20:27:04 +00:00
2009-04-09 12:53:56 +00:00
2009-04-07 06:23:45 +00:00
2009-04-09 22:15:26 +00:00
2009-04-13 19:33:22 +00:00
2009-04-13 19:33:22 +00:00
2009-04-13 19:33:22 +00:00
2009-04-13 19:33:22 +00:00
2009-04-19 22:02:48 +00:00