# Tcl & Script Control

**URL:** https://forums.ipg-automotive.com/c/coding-integration/tcl-script-control/7.md

[Latest](https://forums.ipg-automotive.com/latest.md) · [Categories](https://forums.ipg-automotive.com/categories.md) · [Tags](https://forums.ipg-automotive.com/tags.md)

---

## [About the Tcl & Script Control category](https://forums.ipg-automotive.com/t/about-the-tcl-script-control-category/13)

<div class="topic-metadata">

**Author:** [@david.barry](https://forums.ipg-automotive.com/u/david.barry)\
**Replies:** 2\
**Last updated:** [24 November 2023 08:35 UTC](https://forums.ipg-automotive.com/t/about-the-tcl-script-control-category/13 "2023-11-24T08:35:35Z")

</div>

A place to discuss Tcl and script control

---

## [Issue with using QuantSubcribe with proc or foreach for TCL script control](https://forums.ipg-automotive.com/t/issue-with-using-quantsubcribe-with-proc-or-foreach-for-tcl-script-control/1791)

<div class="topic-metadata">

**Author:** [@David](https://forums.ipg-automotive.com/u/David)\
**Replies:** 0\
**Last updated:** [20 April 2025 09:08 UTC](https://forums.ipg-automotive.com/t/issue-with-using-quantsubcribe-with-proc-or-foreach-for-tcl-script-control/1791 "2025-04-20T09:08:44Z")

</div>

Hi, I am looking to try and automate running simulations using the script manager and TCL however I am having some issues! I am trying to run a sweep of a variable and log some quantities however when I utilise proc or …

---

## [Create New TestRun from Scratch using Python API](https://forums.ipg-automotive.com/t/create-new-testrun-from-scratch-using-python-api/1634)

<div class="topic-metadata">

**Author:** [@ravi1998](https://forums.ipg-automotive.com/u/ravi1998)\
**Replies:** 1\
**Last updated:** [17 March 2025 12:57 UTC](https://forums.ipg-automotive.com/t/create-new-testrun-from-scratch-using-python-api/1634 "2025-03-17T12:57:56Z")

</div>

Hello, I want to create a new TestRun from scratch and add ego vehicle and few traffic participants with cusstom parameters using Python API. is it possible at all? If yes, How complicated would it be ? and any example …

---

## [How to call Testspace variable (TS) in Globalmanuver?](https://forums.ipg-automotive.com/t/how-to-call-testspace-variable-ts-in-globalmanuver/1231)

<div class="topic-metadata">

**Author:** [@Ramachandran](https://forums.ipg-automotive.com/u/Ramachandran)\
**Replies:** 1\
**Last updated:** [11 December 2024 13:29 UTC](https://forums.ipg-automotive.com/t/how-to-call-testspace-variable-ts-in-globalmanuver/1231 "2024-12-11T13:29:15Z")

</div>

I want to pass variable present in TestSpace to minimanuver with out assign it to Nvalue . i used $TS::varname but getting error,

---

## [I wanna start scenario at any timepoint phase by CPAL, how should I do?](https://forums.ipg-automotive.com/t/i-wanna-start-scenario-at-any-timepoint-phase-by-cpal-how-should-i-do/1209)

<div class="topic-metadata">

**Author:** [@CHENYJI](https://forums.ipg-automotive.com/u/CHENYJI)\
**Replies:** 0\
**Last updated:** [21 November 2024 06:46 UTC](https://forums.ipg-automotive.com/t/i-wanna-start-scenario-at-any-timepoint-phase-by-cpal-how-should-i-do/1209 "2024-11-21T06:46:58Z")

</div>

I wanto to use CPAL start my scenarios, such as the scenario is 60s, now how could skip the first 15s, it means that the cars and signals state are started as the phase of scenario 15s. now I have convert the ERG to AS…

---

## [Minimanoeuvre change()](https://forums.ipg-automotive.com/t/minimanoeuvre-change/849)

<div class="topic-metadata">

**Author:** [@prabanjan\_KAN](https://forums.ipg-automotive.com/u/prabanjan_KAN)\
**Replies:** 1\
**Last updated:** [20 March 2024 16:41 UTC](https://forums.ipg-automotive.com/t/minimanoeuvre-change/849 "2024-03-20T16:41:04Z")

</div>

Is it possible to check if the variable changes from specifically 0 to 1 or 1 to 0 using any function? I am trying to get starting time and ending time of an event. so that I can calculate the duration of the event. Eva…

---

## [Creating a plane](https://forums.ipg-automotive.com/t/creating-a-plane/850)

<div class="topic-metadata">

**Author:** [@prabanjan\_KAN](https://forums.ipg-automotive.com/u/prabanjan_KAN)\
**Replies:** 3\
**Last updated:** [6 March 2024 20:35 UTC](https://forums.ipg-automotive.com/t/creating-a-plane/850 "2024-03-06T20:35:19Z")

</div>

Can I define a plane/points which goes through the contact patch of all the four wheels and then measure the height of it in Carmaker?

---

## [Python API Parallel Simulation](https://forums.ipg-automotive.com/t/python-api-parallel-simulation/549)

<div class="topic-metadata">

**Author:** [@Jeonghun](https://forums.ipg-automotive.com/u/Jeonghun)\
**Replies:** 11\
**Last updated:** [13 February 2024 23:56 UTC](https://forums.ipg-automotive.com/t/python-api-parallel-simulation/549 "2024-02-13T23:56:40Z")

</div>

Hi, Guys! Currently I’m working on carmaker automation with python api. And I keep trying automation with parallel things! (example in python api) So Running parallel carmaker simulation is success. But problem is car…

---

## [Can we load road file (.xodr) to carmaker using python CMAPI?](https://forums.ipg-automotive.com/t/can-we-load-road-file-xodr-to-carmaker-using-python-cmapi/624)

<div class="topic-metadata">

**Author:** [@Sai.K](https://forums.ipg-automotive.com/u/Sai.K)\
**Replies:** 2\
**Last updated:** [31 August 2023 04:23 UTC](https://forums.ipg-automotive.com/t/can-we-load-road-file-xodr-to-carmaker-using-python-cmapi/624 "2023-08-31T04:23:12Z")

</div>

I need to load Road file in carmaker, which I can load manually from scenario editor. However, I want to automate this using python CMAPI. I am able to load testruns and create variations and run them. I want to know is…

---

## [Get Unknown Sensor Name(s) with Script Commands](https://forums.ipg-automotive.com/t/get-unknown-sensor-name-s-with-script-commands/544)

<div class="topic-metadata">

**Author:** [@MForck](https://forums.ipg-automotive.com/u/MForck)\
**Replies:** 0\
**Last updated:** [16 June 2023 11:44 UTC](https://forums.ipg-automotive.com/t/get-unknown-sensor-name-s-with-script-commands/544 "2023-06-16T11:44:39Z")

</div>

Hello, I have a probably trivial application, but am missing vital information. I have following setup: a generalized script different vehicles and Sensors with the objective: export a video from the perspective of e…

---

## [Scripting to load "Tires"](https://forums.ipg-automotive.com/t/scripting-to-load-tires/418)

<div class="topic-metadata">

**Author:** [@chris.w](https://forums.ipg-automotive.com/u/chris.w)\
**Replies:** 4\
**Last updated:** [28 February 2023 10:41 UTC](https://forums.ipg-automotive.com/t/scripting-to-load-tires/418 "2023-02-28T10:41:04Z")

</div>

Hi. I have managed to uncover a way to script the loading of a vehicle (Car::Load, which I did not see in the manuals), but now want to do the same to programmatically override the TestRun tyres (or “Tires” in CarMaker).…

---

## [Is there a way to run a CarMaker script(tcl) from matlab?](https://forums.ipg-automotive.com/t/is-there-a-way-to-run-a-carmaker-script-tcl-from-matlab/99)

<div class="topic-metadata">

**Author:** [@Chips](https://forums.ipg-automotive.com/u/Chips)\
**Replies:** 1\
**Last updated:** [20 September 2021 07:55 UTC](https://forums.ipg-automotive.com/t/is-there-a-way-to-run-a-carmaker-script-tcl-from-matlab/99 "2021-09-20T07:55:47Z")

</div>

I need to run a CarMaker tcl script, that I created, from a matlab script. Is there a way to do this? CarMaker is connected to simulink.
