This seems to be possible given the discussion in the following thread, but I am struggling to find a code example: