Most of the time you will be dependent on how your project is organized. Possibly that script would not work for your project at all.
It would be better to describe what would be your starting point (e.g. nothing, clean curtain wall, complete curtain wall with single color panel) and what would be your desired end result. Also good to think about how you would this manually in Revit. If you have a good understanding of this proces you can start to automate this with Dynamo.
So if you have a better description of your needs (maybe a sample project with start point and desired end result) I could help.
Louis

Please mention Revit version, especially when uploading Revit files.