• MAXON_MODULE_ID undeclared identifier [R20 C++ plugin]

    8
    0 Votes
    8 Posts
    3k Views
    A
    Hi Riccardo! Thank you very very much for your detailed explanation. That helped me a lot and YEAHHHH....got it working Thanx in advance for your time! Best regards Andi
  • 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)
  • 0 Votes
    7 Posts
    2k Views
    eZioPanE
    Hi, @y_puech I may find a bug of the forum about "mark a post correct answer", discussion post here: Cannot mark post as answer Once this bug solved, I will re-edit this topic and posts correctly.
  • Change plugin folder cinema4d R19

    Moved 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
  • question about Team Render

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    r_giganteR
    Hi zhhm156, so for coming late here, but it took more than expected. After getting in contact with the team in charge of the development and making some further researches, it appears that the VerifyServerOnClient function is indeed deprecated. I'll get back on this discussion in the future to notify about potential workaround to achieve a similar functionality. Best, Riccardo
  • Modify Sketch&Toon Rendersettings

    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
  • Adding Multiple Keyboard Shortcuts within a Python Script

    r20 python sdk
    5
    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.
  • how to import c4d on my python project

    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.
  • About PopupEditText and SendMail

    r20 c++
    12
    0 Votes
    12 Posts
    3k Views
    M
    Hi @anoano I'm wondering if your question has been answered. If so, please mark this thread as solved. Cheers, Maxime.
  • Modify Spline Gui

    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
  • Move an object in hierarchy

    Moved 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
  • Unresolved symbols with /GL /LTCG

    r20 c++ windows
    4
    0 Votes
    4 Posts
    1k Views
    S
    Hello, I'm not aware of any other components that won't work with that optimization. But again, we don't use this optimization so I haven't tested that. best wishes, Sebastian
  • c4dpy not working on OS x 10.12

    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.
  • Simple Box Gui Creation

    python windows r19
    9
    0 Votes
    9 Posts
    3k Views
    B
    @a_block Case solved! Thanks again for your patience.
  • 0 Votes
    3 Posts
    1k Views
    G
    @s_bach Wow! I didn't see that coming. Thanks for the clear-cut explanation. Now I know in which direction I have to move. Thanks again !
  • Flush a group in a non-main thread.

    r20 c++
    6
    0 Votes
    6 Posts
    2k Views
    P
    Hello. I have solved it by using SpecialEventAdd and sending a message to dialog's CoreMessage. Thank you.
  • Python Script Gui: Use EditSlider Get Float

    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
  • "Compile errors for R_pose_rot / (null)" in console?

    r19
    4
    0 Votes
    4 Posts
    1k Views
    chuanzhenC
    @m_adam Yes, the data is available, it will not print when the object is hidden, hopefully it will be solved in future versions.
  • 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
  • Add functions to python via C++ SDK [R20]

    c++ python
    4
    0 Votes
    4 Posts
    2k Views
    Y
    Hi Víctor, To retrieve parameters a function must be initialized with PYFN_FLAGS::KEYWORDS. Then use pylib.ParseTupleAndKeywords() to get the value for each parameter. The following code shows the implementation of a function which expects a string, an integer and a float: static _PyObject *extendpyapi_PassParameters(_PyObject *self, _PyObject *args, _PyObject *keywords) { PythonLibrary pylib; String str; Int32 integer = 0; Float real = 0.0f; const Char *kwlist[] = {"str", "integer", "real", nullptr}; if (!pylib.ParseTupleAndKeywords(args, keywords, "$if", kwlist, &str, &integer, &real)) return nullptr; if (str.Content()) GePrint("Parameter str: " + str); GePrint("Parameter integer: " + String::IntToString(integer)); GePrint("Parameter real: " + String::FloatToString(real)); return pylib.ReturnPyNone(); } ... moduleFunctions[1].Init("PassParameters", (PyFn)extendpyapi_PassParameters, PYFN_FLAGS::KEYWORDS, "PassParameters() - Extend Python API");