”’connects the first attribute in the function to the second. Note the format of the array then the plus sign then the single quotes and the attribute, interestingly this contains a string as the variable”’
cmds.connectAttr(selectionList[0] + ‘.customVisibility’, selectionList[1] + ‘.visibility’)