Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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. JACK0319
    3. Best
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 13
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by JACK0319

    • I have developed an open-source user interface framework based on UserArea.

      Dear Community,

      I have been using c4d UserArea for a while and have always wanted to write a library to encapsulate UserArea for better usability by users. So I created this module called ualib .

      The plugin ui in this following image is created using ualib.
      235361694-ec22fa42-29e1-4bfb-9063-3f5b754866d5.png
      ualib is a user interface framework based on the C4D GeUserArea module, which allows for the convenient creation of various UI controls that are typically difficult to create within C4D. It's a bit like PyQt, but simpler. You can create and replicate interfaces quickly and easily.

      This is GitHub link. https://github.com/JACKADUX/c4d-ualib/wiki
      Please feel free to download and use it. I will continue to optimize and improve this library. If you have any questions, please feel free to contact me or leave a comment.

      Cheers,

      posted in General Talk python
      J
      JACK0319
    • RE: Encrypt .pyp file to .pypv with script or command line?

      Hi,

      here is some code i used for create pypv

      def call_c4dpy(C4D_PATH, cmd):
          # 需要把c4dpy.exe所在路径添加到环境变量
          # C4D_PATH = r"~\Maxon Cinema 4D R26"
          if C4D_PATH not in os.environ["PATH"]:
              os.environ["PATH"]+=f"{C4D_PATH};"
      
          # cmd 也可以是脚本路径 cmd = r"~\c4dtest script.py" 
          _cmd = f"c4dpy \"{cmd}\"" # 脚本路径必须是字符串
          subprocess.call(_cmd) # 调用并且可以实时看到结果 
      
      def creat_pypv(C4D_PATH, plugin_path):
          # pyp 生成 pypv
          # c4dpy.exe g_encryptPypFile="G:\C4D JACK Plugins\G4Designer\G4Designer.pyp"
          cmd = f"c4dpy g_encryptPypFile=\"{plugin_path}\""
          call_c4dpy(C4D_PATH, cmd)
      
      posted in Cinema 4D SDK
      J
      JACK0319