# Controlling Traffic lights in CARLA with Scenic

**URL:** <https://forum.scenic-lang.org/t/controlling-traffic-lights-in-carla-with-scenic/83>\
**Category:** Simulators\
**Created:** [November 10, 2025, 3:47am UTC](https://forum.scenic-lang.org/t/controlling-traffic-lights-in-carla-with-scenic/83 "2025-11-10T03:47:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VedaantJ](https://forum.scenic-lang.org/letter_avatar_proxy/v4/letter/v/a587f6/32.png) [@VedaantJ](https://forum.scenic-lang.org/u/VedaantJ)\
**Post date:** [November 10, 2025, 3:47am UTC](https://forum.scenic-lang.org/t/controlling-traffic-lights-in-carla-with-scenic/83/1 "2025-11-10T03:47:21Z")

</div>

I want to know if it is possible to control traffic lights in carla using scenic as I am not sure if this is possible.

I am new to how Scenic works and would appreciate any help.

---

<div class="post-metadata">

**Author:** ![charlotteseward](https://forum.scenic-lang.org/letter_avatar_proxy/v4/letter/c/a587f6/32.png) [@charlotteseward](https://forum.scenic-lang.org/u/charlotteseward)\
**Post date:** [November 19, 2026, 7:03pm UTC](https://forum.scenic-lang.org/t/controlling-traffic-lights-in-carla-with-scenic/83/2 "2026-11-19T19:03:03Z")

</div>

It’s possible in principle, but probably not through a built-in Scenic traffic-light primitive. In the CARLA integration, traffic lights are CARLA actors; Scenic can drive the simulation, and you can expose a small Python helper—e.g. an external action or parameter—that looks up the TrafficLight actor and calls CARLA’s set\_state/set\_green\_time APIs. For scenario logic, trigger that helper from Scenic at the times or conditions you need. Check the Scenic CARLA interface version you’re using, since external-action support and naming can vary.
