Jump to content


Regular Member
  • Content Count

  • Joined

  • Last visited

Posts posted by TonyTsao

  1. Hi guys, just learned python in C4D recently


    I'm trying to make a few scripts that can change the selected null objects turn ON color & Cube display & orientation to XZ


    The coding below is my approach to make these changes, but it can only change one null at a time

    def main():
        selObj = doc.GetActiveObject()

        dis = selObj[c4d.NULLOBJECT_DISPLAY]
        ori = selObj[c4d.NULLOBJECT_ORIENTATION]
        col = selObj[c4d.ID_BASEOBJECT_USECOLOR]

        print selObj
        print dis
        print ori
        print col

        selObj[c4d.NULLOBJECT_DISPLAY] = 11                  #Cube display
        selObj[c4d.NULLOBJECT_ORIENTATION] = 3        #XZ orientation
        selObj[c4d.ID_BASEOBJECT_USECOLOR] = 1        #turn ON color display


    # Execute main()
    if __name__=='__main__':


    I also tried  doc.GetActiveObject(c4d.GETACTIVEOBJECTFLAGS_0), but it didn't work though.


    Could someone point out what did I do wrong in the code?


    Thanks in advance.




  2. Currently I have a scene with lots of things animated.
    When I open my timeline , it's totally blank . All the stuffs are still animated though.
    Even if I toggled the automatic mode , nothing happens

    The strange thing is , I created a new scene and animated a cube from left to right. I can see the keyframes in the timeline.
    Has anyone bumped in to this problem before? Please help me out , thanks.

    CINEMA 4D_2018-02-05_11-54-02.png

  • Create New...