3
$\begingroup$

In a script I try to get the coordinates of a head tracker and to change the current scenes camera. The script is wired as shown in this image:

enter image description here

Unfortunatly the script is only called once. How can I setup the Sensor/Controller to invoke it periodically (preferably after a frame has been rendered)?

$\endgroup$
6
$\begingroup$

You could use the delay sensor with the repeat setting checked: enter image description here

$\endgroup$
1
  • $\begingroup$ and the default delay is 60 per seconds, cool $\endgroup$
    – stacker
    Sep 1 '13 at 16:59
6
$\begingroup$

I had to click the small button (highlighted) and set the frequency to 1.

The option is called bpy.types.Sensor.use_pulse_true_level

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.