• How to use c4d.utils.PolygonReduction

    Moved Cinema 4D SDK r19 python
    5
    0 Votes
    5 Posts
    2k Views
    R
    Thank you! This is so much clear now
  • Change plugin folder cinema4d R19

    Moved Cinema 4D SDK r19 python
    2
    0 Votes
    2 Posts
    1k Views
    a_blockA
    Hi, I have turned your thread into a question, see Q&A New Functionality. Also moved the thread to the category Cinema 4D Development. In Cinema 4D R19 you can use the environment variable C4D_PLUGINS_DIR to set another path for plugins. It may even contain multiple directories (separated by semicolon ; ), although there was a bug in the early versions of R19, which prevented this. The bug was fixed with R19 SP2. There's an old thread discussing this, where you can also see how it's used: C4D_PLUGINS_DIR Multiple path Admittedly the original poster still seemed to have issues with mutiple paths, which we have not been able to reproduce, though. In Cinema 4D R20 this was changed completely. There you have multiple options: Multiple plugin directories can be set in Cinema's preferences g_additionalModulePath environment variable Additional plugin directories can be specified on command line Cinema4D.exe g_additionalModulePath=... See also Environment Variables in the user help and also the thread Is C4D_PLUGINS_DIR env var still working (R20.0.28)?. Cheers, Andreas
  • 0 Votes
    7 Posts
    2k Views
    chuanzhenC
    @m_adam Wow, I learned some tricks from your code! ( so important to me) Thank you very much for your optimization and testing of your personal time, which is very helpful to me! (C++ is so fast)
  • Modular plugin programming

    General Talk python
    6
    0 Votes
    6 Posts
    3k Views
    S
    Hello, you might have to add the pyp file path to the system path using: sys.path.append(os.path.dirname(__file__)) so import sys import os sys.path.append(os.path.dirname(__file__)) import hello_function best wishes, Sebastian
  • Move an object in hierarchy

    Moved Cinema 4D SDK python
    4
    0 Votes
    4 Posts
    2k Views
    a_blockA
    Hi, both answers already provide valid solutions. Nice. @Rage: Please also consider to use the tagging system (see Read Before Posting) and the Question and Answer feature (see Q&A New Functionality). Especially the tags can help, like for example in this case @mp5gosu would probably have provided you with Python code, if the respective tag was set. Besides setting tags and changing into a question, I have also moved this thread into the Cinema 4D Development category. And then I want to add a few links to Python docs: GeListNode CallCommand() Cheers, Andreas
  • Is C4D_PLUGINS_DIR env var still working (R20.0.28)?

    General Talk r20 python
    2
    0 Votes
    2 Posts
    3k Views
    S
    Hello, in Cinema 4D R20 the environment variable C4D_PLUGINS_DIR has been removed. It has been replaced with g_additionalModulePath. You can use this command also as a command line argument. See Environment Variables. Please notice that you can mark your post also as a question. See Q&A New Functionality. best wishes, Sebastian
  • Python Script Gui: Use EditSlider Get Float

    Cinema 4D SDK python
    4
    0 Votes
    4 Posts
    2k Views
    M
    Hi, @mike if the previous post solves your issue, please mark it as the correct answers. It will switch the topic as solved. To do so please read Q&A functionality. Of course, if you didn't test my previous post, or may have follow-up questions, do not mark as solved and take as much time as you need to ask us. But if there is nothing more to add please mark your topic as solved. Cheers, Maxime
  • 0 Votes
    7 Posts
    2k Views
    T
    @mp5gosu Thank you, that is a good tip. I see that Onull=5140 is listed and it looks like all others are in there too! Thom
  • Mosplines - Iterate Width

    Moved Cinema 4D SDK python
    14
    0 Votes
    14 Posts
    3k Views
    a_blockA
    Hi, I'm sorry for getting back so late. My examples should be easily adapted to random values. Our Python SDK does not directly provide means for random numbers, but Python's random module should do the trick just fine. Cheers, Andreas
  • Modify Sketch&Toon Rendersettings

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    1k Views
    Y
    Hi Holger, I'm wondering if your question has been answered. If so, please mark this thread as solved. Cheers, Yannick
  • Simple Box Gui Creation

    Cinema 4D SDK python windows r19
    9
    0 Votes
    9 Posts
    3k Views
    B
    @a_block Case solved! Thanks again for your patience.
  • Modify Spline Gui

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    1k Views
    S
    Hello @HolgerBiebrach , I'm wondering if your question has been answered. If so, please mark this thread as solved. best wishes, Sebastian
  • how to import c4d on my python project

    Cinema 4D SDK r19 python
    6
    0 Votes
    6 Posts
    3k Views
    M
    Hi @zhhm156 I'm wondering if your question has been answered. If so, please mark this thread as solved. Cheers, Maxime.
  • c4dpy not working on OS x 10.12

    Cinema 4D SDK python
    5
    0 Votes
    5 Posts
    2k Views
    Y
    Note c4dpy does not work with a R20 free educational license. But c4dpy runs fine with a paid R20 student license.
  • 0 Votes
    5 Posts
    2k Views
    M
    Hi @Hexbob6 I'm wondering if your question has been answered. If so, please mark this thread as solved. Cheers, Maxime.
  • 0 Votes
    5 Posts
    1k Views
    SwinnS
    @m_adam Cool. Thank-you for your time and patience.
  • Check if Object is Spline Type

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    1k Views
    H
    Hi Maxime. Thanks a lot. That helped me.
  • 0 Votes
    7 Posts
    2k Views
    Y
    Hi @mikeudin, I'm wondering if your question has been answered. If so, please mark this thread as solved. Cheers, Yannick
  • Calling CommandData by name

    Cinema 4D SDK c++ python r19 r20
    5
    0 Votes
    5 Posts
    1k Views
    a_blockA
    Hi, just want to ask, if can consider this topic as solved. Bye, Andreas