Quote:
Originally Posted by X-Raym
IMHO it would be better to have a project parameter rather than having it return project ID (though it may not solve the same desire).
|
I thought this too but it actually looks like last touched fx is not per project, rather it's global.
Now as I look more closely, I see that if the last touched fx is from another tab, GetLastTouchedFX() returns true but indicates the track number is 0 (i.e. master track). This is wrong and unfortunately also renders your proposed workaround inoperable. (The idea still has problems anyway, because it's possible the track number in the other project is actually valid in the current project. But we do what we can to work around these frustrating API limitations, don't we.
)
So the general problem here is that GetLastTouchedFX() is incompatible with subprojects.