Hot to access sound file linked to a clip?

joao's icon

Hi, my end goal is to add a function to Loop Shifter that can read the selected clip and on bushing a button, loads the audio into the buffer. Instead of dragging a file into it.

I've figured out how to select a clip, but can't figure out how to get it into the loop shifter. I'm a relative newbie. Any help/direction pointing appreciated.