Page 1 of 1

Get fixture attribute value

Posted: 19 Apr 2024, 00:36
by Jorge Garcia
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!

Re: Get fixture attribute value

Posted: 22 Apr 2024, 16:00
by Gregory
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.

Re: Get fixture attribute value

Posted: 23 Apr 2024, 19:09
by Jorge Garcia
It works like a charm, thanks a lot Gregory!!! :-)