Toggle in SC (midi sequencing)

What if I want to use a Pbjorklund for \dur, with 3 dynamic values, in a Pbind, instead of a single value like in your Pfunc example?

var n = ~timeline.at(ev[\step]).numHits;
Pbjorklund(n, 8, inf, 0)/4,

I tried to fiddle with Plazy, but that doesn’t work like with Pfunc in a Pbind it seems.

Edit: Found a answer here: