Jump to content
C4 Forums | Control4

"OR" conditional in programming?


livitup

Recommended Posts

Posted

image.png.e45a80d19943fbf234bef0660abdc8e6.png

 

Surely there's a better way to do this.  My programming background has me wishing for an 'OR' command, but if nothing else, I've learned there's more than one way to skin a cat in Composer.  School me, Jedis?


Posted

Use variables. Whenever the source is directv set a variable. When that variable changes change the aspect ratio

Sent from my Pixel 2 XL using Tapatalk

Posted

 No need for variables.

similar to the way you have it now, for example:

when video selection changes:

if selected video device is Kscape

      Macro scope aspect

Else

macro standard aspect

 

 

else would be found under programming control in 2.10+ builds of composer.

Posted

Familiar with 'else' but need to account for two scope sources (Kaleidescape OSD and Kaleidescape Movies), so else doesn't help.

I don't see how variables will help - wouldn't I still need just as many IF statements?

Posted
3 minutes ago, lippavisual said:

Does the Kscape driver supply that res change to C4?

if so, you can till use else. 

I believe there is a kscape device variable for aspect ratio

Posted
On 8/26/2018 at 2:32 PM, livitup said:

image.png.e45a80d19943fbf234bef0660abdc8e6.png

 

Surely there's a better way to do this.  My programming background has me wishing for an 'OR' command, but if nothing else, I've learned there's more than one way to skin a cat in Composer.  School me, Jedis?

IF room selected device is KScape OSD

-- execute Scope Aspect

--stop

IF room selected device is KScape OSD

-- execute Scope Aspect

--stop

execute standard aspect

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.