MatchLayerAttributes

MatchLayerAttributes(target_layer_names, source_layer_name, visibility=False, lockState=False, color=True, materialIndex=True, lineType=True, plotColor=True, plotWeight=True)

Matches, or copies the attributes of a source layer to a target layer. Full path is recommended for accurate identification of layers.

returns:number of objects modified