So here’s the logic for you:
zip() in Python is one of the basic functions to go trough the multiple list at the same time. So if you have list I with [1,2,3,4,5] and list II with [a,b,c,d,e], then zip(list I, list II) will make the fiction go trough in pairs (1,a), (2,b), (3,c) … etc. So we feed here this:
for i, k in zip(elements,views):
Which means for each view (here it called k) in views take the view and execute SetElementOverrides with the paired element ID (here it’s i) and OverrideGraphicSettings.
So zip is pairing stuff. This script wouldn’t work if the paired element is not on the view. So what I did is extracted views and with custom node from MEPover, correlated revisions clouds. So the pairs are correct. And python script works.
So if you have multiple revision clouds on single view then the MEPover node wil give you multiple items per view. So to make it work you need to have something like (view1 , rev.clo1), (view1 , rev.clo2) if rev.clo2 is on the same view etc. So basically make correct pairs, then feed it in python as 2 single level lists.