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!
Get fixture attribute value
Moderator: Moderators
-
- Posts: 7
- Joined: 13 Apr 2024, 14:36
Re: Get fixture attribute value
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.
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.
-
- Posts: 7
- Joined: 13 Apr 2024, 14:36
Re: Get fixture attribute value
It works like a charm, thanks a lot Gregory!!!
Who is online
Users browsing this forum: No registered users and 2 guests