How to get only tracks displayed in timeline User Mode
-
Hi,
I would like to know how to check if CTrack is shown/hidden in User Mode of timeline.
I usually use GeListNode.GetNBit() to check the status of CTrack on timeline, such as selected or hidden.
NBIT_TL1_HIDE is the one for checking if the element is hidden on the main timeline, but not for tracks that are hidden on the User Mode timeline.Does anyone know of any way to do this?
-
Hey @kng_ito,
Thank you for reaching out to us and please excuse the long waiting time. The subject had actually been assigned to @m_adam but he must have forgotten and now is on vacation.
I had a brief look at your problem, figuring out which elements are displayed in user-mode in the timeline and which not. I think you have to approach the subject from the host, the
BaseList2D
, and not the tracks, i.e., you hide/show scene elements.From the looks of it, doing this is not possible, neither in Python nor in C++. Internally, the Dopesheet is using a type called
IndividualModeElement
which tracks a scene element with tracks when the Dopesheet is in User Mode. There seems to be no flag which ties this internal data to the outside world.Cheers,
Ferdinand -
Hi @ferdinand ,
Thank you for clarifying. I needed a solution for my tool to determine which track/key is displayed&selected.
But if I can't do that in user mode, I'll make sure my tools don't work when the timeline is in user mode.