Retrieving trace offsets?

Hi everyone,

is a function known, that given a tracename, returns the (mul)offsets?
TagVal comes close, but is too particular. Thanks for your help.

all the best, Lucas
This will do it.

Function GetTraceOffset(graphName, traceName, instance, which)
    String graphName    // "" for top graph
    String traceName
    Variable instance   // Usually 0
    Variable which      // 0 for X, 1 for Y
   
    String info= TraceInfo(graphName,traceName, instance)
   
    String offsets = StringByKey("offset(x)",info,"=",";") // "{xOffset,yOffset}"
   
    Variable xOffset,yOffset
    sscanf offsets, "{%g,%g}",xOffset,yOffset
   
    if (which)
        return yOffset
    endif
    return xOffset
End

It works great, thank you :)
TraceInfo had caught my attention, and I only now notice, when I try it, that actually much more keywords are available than are written out in the manual. TraceInfo is the logical candidate of course. Thank you!