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. wob
    3. Topics
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by wob

    • W

      problem with loading plugin in python_init.py

      Cinema 4D SDK
      • • • wob
      3
      0
      Votes
      3
      Posts
      544
      Views

      W

      @m_adam it's strange, but this small script works fine without any problems with cinema 4d s22. cinema 4d r20 show this error only.

    • W

      any way to close cinema 4d from the python script

      Cinema 4D SDK
      • • • wob
      4
      0
      Votes
      4
      Posts
      833
      Views

      M

      Hi @wob there is noting built-in for that in Cinema 4D. but you can use the regular python way to kill the current process

      import signal import os os.kill(os.getpid(), signal.SIGTERM)

      But I just let you know, that it may be useless by nature python should be pretty good at not creating any memory leak, and should free the data as soon as possible, moreover your approach ( I don't know the whole pipeline) but may also be a big issue for a user since this will clause Cinema 4D without asking for saving. People may lose their work. So I really encourage you to be very careful with the use of this.

      Cheers,
      Maxime.

    • W

      pop-up dialog windows and c4dpy : the problem

      Cinema 4D SDK
      • • • wob
      3
      0
      Votes
      3
      Posts
      716
      Views

      M

      Hi @wob unfortunately this is not possible, c4dpy is a regular Cinema 4D executed as command line with the NoGui, and as all NoGui Cinema 4D execution, GeDialog is disabled.

      So its a limitation, and as said by zipit there is no Tkinter shipped with Cinema 4D in order to force people to use Cinema 4D dialog.

      So possible workarounds are:

      Install pip and install any 3rd party GUI module (but this is not officially supported by Cinema 4D so you may have some odd issues, but it should work). Execute a python script before from a system python installation that will create the Dialog and later execute c4dpy to do the Cinema 4D work.

      Cheers,
      Maxime.

    • W

      How to run Python script at moment scene is opened?

      Cinema 4D SDK
      • python r20 r21 • • wob
      4
      0
      Votes
      4
      Posts
      836
      Views

      ManuelM

      hi,

      i'll set that thread to solved tomorrow without further feedback

      Cheers,
      Manuel