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. gaschka
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 13
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by gaschka

    • gaschkaG

      Rename Layers with Python containing Emoji?

      Cinema 4D SDK
      • 2024 python windows • • gaschka
      3
      0
      Votes
      3
      Posts
      581
      Views

      ferdinandF

      Hello @gaschka,

      Thank you for reaching out to us. Yes, this is an encoding issue. In general, Unicode is supported by the Python to C++ bindings, as you can see, French, German, and Turkish diacritics are all correctly transported, as well as Chinese characters.

      5bfdbc74-f638-4fd8-8df9-2b95479b233b-image.png

      But all these are part of the Basic Multilingual Plane (BMP) while the emojis are part of the Supplementary Multilingual Plane (SMP) of the Unicode table. It could either be that there is something not implemented or some bits get chopped off while data is sent to the C++ layer. I don't really know, the person who is responsible for the Python bindings, @m_adam, is on vacation. I will ask him once he is back, as I too would be guessing what is happening here exactly.

      Cheers,
      Ferdinand

    • gaschkaG

      Python: How to import files as modules?

      Cinema 4D SDK
      • python 2024 • • gaschka
      2
      0
      Votes
      2
      Posts
      507
      Views

      i_mazlovI

      Hi @gaschka,

      In your next postings please provide more detailed description of your question. In this case you're lacking information about the file structure you're using, the code that performs the import, the information on how and what have you set the environment variable for.

      Regarding your question, when splitting python code into separate pieces one usually uses the concept of packages rather than raw files. Hence, your question relates to local modules you'd like to use in your script. Please, have a look at the Python Libraries Manual especially the last section about the Local Plugin Search Paths.

      Another point of interest for you would be a utility function LocalImportPath that simplifies the process of importing packages.

      If you have any further questions, please let me know and provide a code sketch that showcases your issue.

      Cheers,
      Ilia

    • gaschkaG

      Python: How to inject code into a Python tag?

      Cinema 4D SDK
      • python 2024 • • gaschka
      4
      0
      Votes
      4
      Posts
      794
      Views

      gaschkaG

      Thanks to you both for your answers.

      @m_adam Regarning my issue with the file linking, I'll try to come up with a procedure for reproduction of my issue soon: It was quite random, but I was in the flow of writing my script, so I circumvented with the string solution, but I would prefer the file solution for sure.

    • gaschkaG

      Python: User Data Float Slider?

      Cinema 4D SDK
      • python 2024 • • gaschka
      4
      0
      Votes
      4
      Posts
      860
      Views

      gaschkaG

      @i_mazlov Thank you for the friendly introduction and the hint to CUSTOMGUI and REALSLIDER, exactly what I was looking for.
      @baca Thank you for the additional tip.

    • gaschkaG

      Python script to Python tag hand over?

      Cinema 4D SDK
      • 2024 python • • gaschka
      3
      0
      Votes
      3
      Posts
      631
      Views

      gaschkaG

      Thanks for your help and nudging me into the right direction, I think I can work with that 🙂

    • gaschkaG

      Python tag initalization?

      Cinema 4D SDK
      • python 2024 • • gaschka
      7
      0
      Votes
      7
      Posts
      1.1k
      Views

      gaschkaG

      @m_adam

      @m_adam said in Python tag initalization?:

      OM is not single threaded,

      Oh, that's an interesting insight for me. Perhaps I was misinformed, as Character Rigs had the tendency to get slow quite easily in C4D, and Animators look envy over to Maya, as they do have a parallel evaluation (and caching). Though I'm aware that there are changes/improvements to C4D performance lately. Thanks for the link. A lot of new information to learn an absorb 🙂