Crescendo using the MIDI Logical Editor

So, I can program a command to create linear change inside the cycle range.
Transforming value 2 on velocity or CC11, depending on the VSTi involved, will make a crescendo.

What I would like to do is make a command which will effect a selection range instead of the cycle range.
Is this possible?