control4 / docs-driverworks

Home Page for the Driverworks SDK
Other
41 stars 17 forks source link

change connection dynamically #13

Closed mojtabavi closed 3 years ago

mojtabavi commented 3 years ago

is there anyway to change number of connections or names dynamically?

spike411 commented 3 years ago

https://control4.github.io/docs-driverworks-api/#adddynamicbinding

If the connection already exists you can rename it by calling C4:AddDynamicBinding again with the same parameters, just changing strName.

spike411 commented 3 years ago

Beware there are typos in the example. (Looks like incorrect conversion/parsing of some markup language.)

image

mojtabavi commented 3 years ago

thanks you @spike411 your comment really help me i found the correct one Capture