Skip to main content
Known Participant
November 10, 2018
Answered

Enable channel disable

  • November 10, 2018
  • 1 reply
  • 487 views

I would like to create this function but I certainly make some mistakes because it does not work

I have a channel with the name test

I would like to create a button that enables or disables this function

this is what I have now

Option =activeDocument.channels

try {

   

if (Option.channels["Test"].visible == true) {

Option.channels["Test"].visible = false;

} else {

Option.channels["Test"].visible = true;

}

}

catch (e) {}

app.refresh();  

This topic has been closed for replies.
Correct answer r-bin

Option.channels["Test"]

Option["Test"]

1 reply

r-binCorrect answer
Legend
November 10, 2018

Option.channels["Test"]

Option["Test"]