TimeLine DopeSheet not update
-
Hi
in Dope Sheet -F-Curve mode,i change CTrack NBit(c4d.NBIT_TL1_SELECT2) ,(selection State),the window will not refresh immediately.After selection state change, how can I make the window refresh in real time
import c4d def main() -> None: for track in op.GetCTracks(): track.ChangeNBit(c4d.NBIT_TL1_SELECT2,c4d.NBITCONTROL_SET) c4d.EventAdd() if __name__ == '__main__': main()Thanks for any help!
-
Hello @chuanzhen,
Thank you for reporting this. At first glance this looks like a bug/regression in 2026.3.0. I'll have to check in more detail myself before I can say for sure. But your code is also incorrect, the
NBIT_TLX_SELECT2bits are internal and not for what you think they are. You must useNBIT_TLX_SELECTinstead. But they are currently malfunctioning for me on Windows in 2026.3.Until I am sure, I will not yet classify this as a bug.
Cheers,
FerdinandIn 2026.2.0, this code randomly selects and deselects tracks in an all timelines for the active object. I.e., you can spam-click the script and see the track selections 'jump around'. In 2026.3 it does exactly nothing (at least on my Windows machine).
import c4d import random def main() -> None: for track in op.GetCTracks(): bit: int = random.choice([c4d.NBITCONTROL_SET, c4d.NBITCONTROL_CLEAR]) for tl in (c4d.NBIT_TL1_SELECT, c4d.NBIT_TL2_SELECT, c4d.NBIT_TL3_SELECT, c4d.NBIT_TL4_SELECT): track.ChangeNBit(tl, bit) c4d.EventAdd() if __name__ == '__main__': main()