yea.. the code will likely get pretty complex if you don't know how many gradient stops there will be. ultimately, it's going to require identifying that pathItem[index] has a gradient, then determining how many stops, then pushing the information from each stop into an array, then applying that information from the array into the object you want to replace (but before applying the information, you need to extract the info from those stops and push to a separate array).. i might be of more help if i can see the file you're working with.. how many gradients are we talking here? and will each gradient have just 1 mirror object? or is there one object with gradient stops [a, b, c, d, e] and then several objects with gradient stops [aa, bb, cc, dd, ee]?
... View more