just a linear change in the duty cycle starting at zero and ending at the maximum defined by your pot?
yes and to go the other way when the switch is in the opposite direction
Is it possible that either of the pots will be adjusted during this timed processing?
no
You mentioned a switch - do you need to deal with the switch going low or high after it has triggered this process? Do you want to respond to any further changes to the switch state during the time processing? How about after it has completed?
i was using the switch to trigger the process for example when the switch goes high it will slowly increase the pin over the duration the one pot is set to and to the maximum point the other pot is set to when that point has reached it will stay there until the switch goes low and then it will wind back down to 0 over the period of time the pot is set at