Get fixture attribute value

Discussion and chat related to developing interfaces to the Titan software using the web API.

Moderator: Moderators

Jorge Garcia
Posts: 6
Joined: 13 Apr 2024, 14:36

Get fixture attribute value

Postby Jorge Garcia » 19 Apr 2024, 00:36

Hello

I have read in this forum that I can set an attribute value for selected fixtures with this API:

http://localhost:4430/titan/script/2/Pr ... lValueById

It works great.

There's any possibility to also get the current attribute value for selected fixtures?

Thanks!
User avatar
Gregory
Posts: 1302
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: Get fixture attribute value

Postby Gregory » 22 Apr 2024, 16:00

Assuming the fixtures are already selected you can set the context attribute using the following command:
http://localhost:4430/titan/script/2/Programmer/Editor/Fixtures/SetContextAttributeFromId?attributeId=32

It is then possible to read the value of the context attribute as follows, this will be the same as the value shown on the wheel e.g. 0.00 to 100.00:
http://localhost:4430/titan/get/Programmer/Editor/Fixtures/ContextAttribute/Value

There are some fixed numeric attribute IDs which are listed here. Other attribute/control IDs can be looked up using:
http://localhost:4430/titan/script/2/Programmer/Editor/Fixtures/GetControlIdFromName?controlName=Pan

The SetContextAttributeFromId won't necessarily return an error if the attribute cannot be found so you can check what it ended up being set to by looking at the property:
http://localhost:4430/titan/get/Programmer/Editor/Fixtures/ContextAttribute/Id

There are several other ContextAttribute properties that can be queried for information.
Jorge Garcia
Posts: 6
Joined: 13 Apr 2024, 14:36

Re: Get fixture attribute value

Postby Jorge Garcia » 23 Apr 2024, 19:09

It works like a charm, thanks a lot Gregory!!! :-)
Jorge Garcia
Posts: 6
Joined: 13 Apr 2024, 14:36

Re: Get fixture attribute value

Postby Jorge Garcia » 23 Apr 2024, 20:06

I see it's possible to get also the function id, and the function type. That's nice.

Is possible to get also the function name? For example, with shutter attribute, get if function is "Open" or "Closed"?

Thanks!

Who is online

Users browsing this forum: No registered users and 2 guests