Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. sungam
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sungam

    @sungam

    0
    Reputation
    2
    Posts
    81
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sungam Follow

    Posts made by sungam

    • RE: 3rd party APIs into pyp/pypv file

      Hi,
      this doesn't seem to work anymore.

      ./c4dpy.app/Contents/MacOS/c4dpy -m pip install numpy                                                                                                              
      Collecting numpy
        Downloading numpy-1.19.4.zip (7.3 MB)
      (null)     |████████████████████████████████| 7.3 MB 5.3 MB/s (null)
      (null)  Installing build dependencies ... (null)error
        ERROR: Command errored out with exit status 2:
         command: '/Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy' '/Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip' install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-7f2h5t11/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0'
             cwd: None
        Complete output (1 lines):
        /Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy: can't open file 'pip': is a directory (file:///Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip)
        ----------------------------------------
      ERROR: Command errored out with exit status 2: '/Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy' '/Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip' install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-7f2h5t11/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0' Check the logs for full command output.
      [1]    48826 segmentation fault  sudo ./c4dpy.app/Contents/MacOS/c4dpy -m pip install numpy
      
      posted in Cinema 4D Development
      S
      sungam
    • Struggling with Python Documentation and pyc4d

      Hi there,
      I'm trying to write a python plugin and keep hitting walls.
      My biggest problem is understanding the python api documentation with my limited knowledge of C++ (Done some OpenCl and small C++ project at uni, no knowledge of bigger software architecture).
      Usually example projects is all I need to get started with other software APIs, but C4Ds plugin examples on github are pretty useless to learn from for me. (Not even a single line of comment!?)

      Where does the "res" folder come from, what is it? Can't find a single trace about it in the python docs apart from this. Which is not comprehensible for me having grown up in the python world...

      Secondly I can't get CLion to like the .pyp file ending to make syntax highlighting work. (I don't get it. It is just python, aka 'If it looks like a duck, sounds like a duck... Would make live easier with editors.).
      And even if the plugin loads in C4D natively, pyc4d just gives me "EnvironmentError: cannot find pyp file - plugin registration failed".

      All in all the python API is for me just a horrible experience after knowing pymel, maya cmds and maxscript, which makes me sad. The python api documentation gives me the feeling to only cater C++ plugin developers and does nothing to give an artist with basic programming skills an introduction into a more "tech artisty" life in cinema 4D.

      I really don't like having to write those words, but I grew up with Cinema 4D and it was my introduction and part of the reason to pursue a degree in VFX and computer graphics. And it saddens me to say that these experiences drive me more and more into the world of Houdini and Blender...

      Grüße,
      Magnus

      posted in Cinema 4D Development
      S
      sungam