• Coding a Python Plugin for fields

    Cinema 4D SDK python r20 windows
    4
    0 Votes
    4 Posts
    1k Views
    D
    @s_bach I was beginning to wonder if I was beating my head against a brick wall. Apparently so. Thanks so much for alleviating the pain! Well, I learned quite a bit about Python in the process so not really a loss. Guess I'll try moving on directly to the C++ version.
  • Having issues with LoadDll and c4d_main

    Cinema 4D SDK c++ r20
    5
    0 Votes
    5 Posts
    2k Views
    V
    In our case it was a bit more complex but we managed to bypass the issue using load delay dlls. Thank you all!
  • 0 Votes
    5 Posts
    4k Views
    P
    Thank you all, great answers! I will take a different approach. I convert the circle to a spline and then divide that spline into the wanted number of points. -Pim
  • 0 Votes
    4 Posts
    1k Views
    P
    @s_bach said in SortedArray() - "Namespace Maxon has no member class "SortedArray": #include "maxon/sortedarray.h" Great, thanks to the both of you. Next time, I will mark it as a question. -Pim
  • Underlying of "doc" and "op" ?

    Cinema 4D SDK
    8
    0 Votes
    8 Posts
    3k Views
    eZioPanE
    @c4ds, don’t worry! Every steps (even the off-road one) make some progress, right? I appreciate the way you focusing on the problem solving, which I believe is also the wonderful thing of this forum: we do our best to solving the problem itself, discussing about the better/more accurate answers rather than “who is right, who is wrong”. Last but not least, thank you for taking time to reply!
  • line limit for function??

    Cinema 4D SDK c++ project tool r20
    2
    0 Votes
    2 Posts
    934 Views
    a_blockA
    Hi ello, no, you don't need to worry, the compiler won't check the remaining lines. It is a warning, we use internally to make people write better code. Usually smaller functions are easier to maintain and thinking about how to properly split and slice your code leads to better better results. By the way, compilers nowadays do quite a good job on inlining functions, so one does not need to be afraid of performance issues. But in the end this is probably also a matter of personal taste and so you can configure this in your projectdefinition.txt. See the Stylecheck options in our Project Tool documentation, there you have the option to set the maximum line count for functions (stylecheck.max-linecount=number). Please consider the use of tags and of our Q&A system. Cheers, Andreas
  • BaseArray::Insert( position, value ) documentation

    Cinema 4D SDK r19 r20 c++ sdk
    3
    0 Votes
    3 Posts
    834 Views
    S
    Hello, Indeed this example is wrong. We will fix that as soon as possible. Thanks for noticing us. best wishes, Sebastian
  • Coding a Python Field

    Moved Cinema 4D SDK
    5
    0 Votes
    5 Posts
    2k Views
    M
    Hey @darrellp as you figured out, it was not on the correct category. But in any case don't worry, maybe I was too harsh and unprecise, I'm sorry about that but in the end, as I said, you are new here, so don't worry if you break the posting rules the first times
  • debugging question

    Cinema 4D SDK c++ r20
    15
    0 Votes
    15 Posts
    4k Views
    a_blockA
    @ello said in debugging question: when i hover for example RNDOFFSET in visual studio i get enum <unnamed>::RNDOFFSET = 1029 does this unnamed part cause something? No, it doesn't cause anything. It just means the symbol is defined in an unnamed enum. We avoid such nowadays (improved error checking, easier to debug), but they don't do any harm. furthermore, since this is a plugin collection the name RNDOFFSET is indeed used with another id in another plugin. does this play a role? i thought that only included files are taken into account? Well, I doubt so, but it may. The point is using unique IDs per BaseContainer. And to access a certain ID always with the same type (you could change the type, but let's leave this aside for now). So for a single BaseContainer Is try to make sure and check, that one ID (I mean the symbol or name like RNDOFFSET) is always accessed with the same type, and that no two symbols have identical ID values, so you do not access the same BaseContainer entry with two different names (lets say RNDOFFSET_INT and RNDOFFSET_VEC) but maybe different types. here is a screenshot for the actual issue From briefly looking at the screenshot on my mobile, it does not give me an additional clue. I recommend to add the debugger console to your layout. Usually we print some extra info there, when we run into a Critical Stop. Bye, Andreas
  • Source processor definitions

    Cinema 4D SDK r20 c++
    2
    0 Votes
    2 Posts
    740 Views
    a_blockA
    Hi, I guess you are talking about rule sets to automatically enforce our code style guide. No, for now we do not provide such files. But I'll forward this as an idea to our development. So long all we have is the documentation of our code style guide. Cheers, Andreas
  • Description... missing member "ID"

    Cinema 4D SDK
    5
    0 Votes
    5 Posts
    2k Views
    E
    @s_bach thank you. i still am on my road... at least it solves the compiler error. i get quite some crashes after updating. guess this will take some time
  • NewMem question

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    2k Views
    E
    thank you. i got this working. maybe there are even other places in my code where i can use this knowledge
  • styleguide warnings

    Cinema 4D SDK c++ r20
    7
    0 Votes
    7 Posts
    2k Views
    E
    thank you.
  • Deforming custom user data

    Cinema 4D SDK c++ r20
    5
    2
    0 Votes
    5 Posts
    1k Views
    r_giganteR
    Hi Roger, I'm jumping into this discussion simply because Andreas is busy at the moment. point 3: it's actually not possible to turn a polygon cache in a spline... you can only consider, but it's rather a hack more than an orthodox approach to use the caches points to create the line object which you would expect from a spline cache, but take it as "thinking loud". point 4: no chance to preserve the cache of a spline as a spline... it's like asking can i preserve the cache of a sphere as a sphere? Actually cache are meant to be the lowest-order geometry to be processed by the displaying pipeline. So surfaces gets tesselleted in points and triangles and mathematical curves in line segments. point 5: I don't get the point here, sorry: you said you used GetAndCheckHierarchyClone() so which objects are you referring you added in the dependency list? Best, Riccardo
  • 0 Votes
    13 Posts
    3k Views
    E
    hm, in the sdk help it is mentioned under "api change list in r20"... scrolling down to lib_description.h i installed VS2015 just for seeing if it works better with c4d. however, in 2017 i had a nice built output where i could sort errors and warnings. this isn't there in the 2015 version, or do i need to toggle it somewhere. cannot find nevermind, found it
  • 0 Votes
    4 Posts
    2k Views
    M
    You have to declare hdrs as a member variable. See 9.3.5: https://docs.python.org/2/tutorial/classes.html
  • Unresolved symbols with /GL /LTCG

    Cinema 4D SDK 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
  • VPBUFFER_OBJECTBUFFER is not rendered correctly

    Cinema 4D SDK r20 c++
    4
    0 Votes
    4 Posts
    1k Views
    r_giganteR
    Hi Petros, glad that you get it fixed. With regard to buffer allocation via AllocateBuffer, being those buffer handled by Cinema, they are automatically released as soon as the multipass bitmap containing such buffers are passed to the PictureViewer. Best, Riccardo
  • 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
  • 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