I got a car simulation software that allows parameter inputs via a script control window.
What I want to do is write a small C++ Application which does some calculation and starts feeding line by line commands into the tcl script control window of the car simulator.
The idea is to use a head-tracking sensor to get the current position in the xyz - plane and then based on the data do some processing and automatically write something like:
>> Movie eval {dict set View(0:0) xrot 12 yrot 0 zrot 0}
into the script window, to adjust the current view.
Above command would translate into panning the current camera view into the 12 degree position to the right (x -direction), being 0 degrees = looking to the front.
So my question is now: How can I tell my C++ Application to write above command into an open script control window?
dict set, but that's not what your question is really about… - Donal Fellows