-
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() -
Hello,
This is a bug. I have fieled it under 'ITEM#649699 Timeline does not react to NBIT selection changes on tracks anymore'. It is unfortunately not a bug in the Python or core C++ API which I could just fix myself, but either a bug in the scene evaluation or the timeline. So, we will have to wait until the owning team tackles it. I notified the owners that timeline automation is a popular scripting task and that they therefore should fix this.
For now, the only thing I can recommend is to use 2026.2 when you want to carry out such tasks.
Cheers,
Ferdinand -
F ferdinand moved this topic from Cinema 4D SDK
-
@ferdinand Thanks for help