Or more simply if your patterns doesn't rotate or scale, you could store additional value on Pivot.x/y/z field.
Or store it in Offset/Scale/Rot fields, in the script after using the value then re-assign a new value for it.
:)