I'm not sure I'm grasping what you're trying to do, but would Set Driven Key be something you could do for this?