Thanks,
but is there a reson for why you still need to user propertyindex?
why is it not possible to just write:
effect("4-Color Gradient").param(thisProperty, - 2).valueAtTime(time - .5)
thisComp.layer(thisLayer, + 1).transform.rotation . valueAtTime(time − .5)
why there is a need for a comma between the “thisLayer” and the “+1”