Chases/GoBack API error
Posted: 19 Jul 2024, 12:19
by iaguilera
Hello
I'm trying to use the API:
/titan/script/2/Chases/GoBack?handle={handle}
When trying to use it, I always get the error:
"Error: Error executing an Action Script"
Other APIs like /titan/script/2/Chases/NextStep work fine.
It's a bug? Some workaround to make it work? I have tried using titanId and location and both fail.
Thanks.
Re: Chases/GoBack API error
Posted: 19 Jul 2024, 12:42
by icke_siegen
How exactly are you calling this? In particular what is your request parameter ("handle=...")?
Re: Chases/GoBack API error
Posted: 19 Jul 2024, 13:47
by icke_siegen
Looks like an error to me, I'll bring it into the system - maybe Gregory has another solution.
You can toggle the connected chase's direction to backwards and then call NextStep like this:
http://localhost:4430/titan/script/2/Chases/Direction/Backwardshttp://localhost:4430//titan/script/2/Chases/NextStep?handle_userNumber=1In order to return to forwards you can call
http://localhost:4430/titan/script/2/Chases/Direction/ForwardsSome other options require the config setting to enable API tied to your GUI, see
other thread. Only then some GUI-related macros and functions are available through API.
You would have e.g. these options:
- Using web API press "Prev Step" with this request: http://localhost:4431/titan/script/2/Menu/InjectInput?type=OnButtonDown&id=PreviousStep&group=&index=0
- In Titan, record a macro which presses 'Prev Step'. Then use web API to call this macro: http://localhost:4431/titan/script/2/Macros/Run?macroId=UserMacro.Macro1
These ways work with the currently connected chase.
Re: Chases/GoBack API error
Posted: 19 Jul 2024, 18:41
by iaguilera
Great, backwards solution is ok for me.
Thanks a lot for your help!!