Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. marc_angele
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by marc_angele

    • RE: startup script in R23 not working anymore

      hi @ferdinand
      thank you very much for your response!

      the python_init.py does the job perfectly 🙂

      great support, thanks a lot!

      best,
      marc.

      posted in Cinema 4D SDK
      M
      marc_angele
    • startup script in R23 not working anymore

      hello guys,

      i finally updated to R23 and have now an issue with my startup code.
      to load and set some variables i used the $g_prefspath/python37/maxon_generated/__init__.py file.
      in R21 it worked perfectly. now in R23 the script didn't execute anymore.
      i tried to delete the library and tested it on different machines.

      does some of you have an idea?
      or is there a better solution to execute some python code at startup?

      thank you for any help!
      best,
      marc.

      posted in Cinema 4D SDK r23 python
      M
      marc_angele
    • RE: Python Tag does not update during rendering

      manuel, you are my hero!
      thanks a lot! it is working 🙂

      sorry, i totally missed the point with the python generator.
      i never used the generator before, i always used the tag.
      what is the difference? when should i use the tag and when the generator?

      thank you again!
      marc.

      posted in Cinema 4D SDK
      M
      marc_angele
    • RE: Python Tag does not update during rendering

      hi manuel,
      thanks a lot for your answer!
      i'm not sure if i understood it correctly.
      i tested it in my scene, but it didn't work. maybe you can have a short look to my scene?

      thanks a lot!!
      i'm a bit despread, because i have no idea how to solve my problem.
      best,
      marc.

      camtest_v002.c4d

      posted in Cinema 4D SDK
      M
      marc_angele
    • RE: Python Tag does not update during rendering

      hi,
      i put it in a Python Tag on the new camera.

      posted in Cinema 4D SDK
      M
      marc_angele
    • Python Tag does not update during rendering

      hello c4d guys!
      i have a problem with updating my scene during the rendering. in the viewport it's working. so i don't understand exactly how the scene updating mechanism is working and need help from you experts 🙂

      what i try to do:
      i have a weird alembic camera form maya, with a animated film back offset. the alembic camera in c4d does not interpret this correctly. so i calculated the translation formula and wrote a python script. as i said in the viewport it's doinge exactly what i want, but during rendering it's just frozen on the first frame. i tested it with the c4d.EventAdd() command, but it's still not working. here is my code:

      import c4d
      
      shotNumber = '0050'
      alembicCam = 'abcCam_' + shotNumber
      standardCam = 'cam_' + shotNumber
      
      
      def main():
          acbCamObj = doc.SearchObject(alembicCam)
          offsetX = acbCamObj[1028637,5103,1118]
          offsetY = acbCamObj[1028637,5103,1119]
      
      
          newCam = doc.SearchObject(standardCam)
          newCam[c4d.CAMERAOBJECT_FILM_OFFSET_X] = offsetX * 0.042107036086
          newCam[c4d.CAMERAOBJECT_FILM_OFFSET_Y] = (offsetY * 1.0043387434) * -1
      
      
      if __name__=='__main__':
          main()
      

      thanks a lot for any help!
      best,
      marc.

      posted in Cinema 4D SDK python
      M
      marc_angele