• Move/Copy Constructors documentation

    Cinema 4D SDK r19 r20 c++
    2
    1 Votes
    2 Posts
    721 Views
    a_blockA
    Hi, in general your approach looks correct to us. Somehow I'm starting to regret we have a thoughtful and attentive community here. We can not hide a single change/omission in the docs without any one of you finding out about it... sigh! Yes, indeed the "Move/Copy Constructors" manual has been removed from the R20 docs, as it needed thorough review and at least partly rewriting we did not find the time for, yet. But it wasn't removed without at least partial replacement. Especially for your case the BaseArray manual contains a section on implementing classes for use with BaseArray. Thanks for the idea of a "documentation issue" tag. Cheers, Andreas
  • Dependence Cache flag

    Cinema 4D SDK c++ r19 r20
    3
    0 Votes
    3 Posts
    765 Views
    rsodreR
    Hey @a_block , I finally got some time to try again, and I actually had two problems First, I'm adding that object as a dependent because one of my modifiers need it, and it was sending a Join modeling command to read it as a single polygon. The command was invalidating the cache, entering a loop. Now I first clone it before join, and the cache flag remains intact. Just looking at the CACHE dirty count of the object was not enough to detect if the deform cache was dirty, I need to look at it's cache dirty cache count. Sounds weird but works, and makes sense to me. if ( distributionObject != nullptr ) { // Check deformed cache auto distributionObjectCache = distributionObject->GetCache( hh ); if ( distributionObjectCache != nullptr ) { auto dirtyCount = distributionObjectCache->GetDirty( DIRTYFLAGS_CACHE ); if ( distributionObjectDirtyCount_ != dirtyCount ) { dirty = true; distributionObjectDirtyCount_ = dirtyCount; } } } op->AddDependence( hh, distributionObject, DIRTYFLAGS_DATA | DIRTYFLAGS_CACHE ); }
  • Sample a shader in 3D space in GVO

    Cinema 4D SDK c++ windows macos r19 sdk classic api
    3
    0 Votes
    3 Posts
    1k Views
    codysorgenfreyC
    Thanks @r_gigante that's what I thought.
  • 0 Votes
    4 Posts
    1k Views
    P
    @s_bach said in Which message do I receive when a command plugin dialog is closed?: DestroyWindow Thanks. By the way, compliments on the latest R20 C++ manual. It is great!
  • Scaling of image not working

    Cinema 4D SDK
    4
    0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, I'm glad this already got solved. I just wanted to mention, I have added code tags to the initial post. Cheers, Andreas
  • Underlying of "doc" and "op" ?

    Cinema 4D SDK
    8
    0 Votes
    8 Posts
    2k 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!
  • Checking Keyframe curve type

    Cinema 4D SDK python r19 windows sdk
    2
    0 Votes
    2 Posts
    673 Views
    S
    Hello and welcome, what exactly do you mean with "export keyframe data"? Do you want to write data into a file? The best way to develop such code would be in a Python script that you can edit and execute in the Script Manager. A XPresso Python node is meant to contain code that is executed as part of XPresso to define the behavior of the XPresso network. A XPresso Python node should not be used to modify the scene or to perform I/O operations. A CTrack object stores the DescID of the associated parameter. You can access that DescID with GetDescriptionID(). Alternatively you can use BaseList2D.FindCTrack() to search for the CTrack associated with a certain parameter DescID. You find an example on GitHub. You find general information on how to use CTrack and DescID also in the C++ documentation: CTrack Manual DescID Manual best wishes, Sebastian
  • BaseArray::Insert( position, value ) documentation

    Cinema 4D SDK r19 r20 c++ sdk
    3
    0 Votes
    3 Posts
    745 Views
    S
    Hello, Indeed this example is wrong. We will fix that as soon as possible. Thanks for noticing us. best wishes, Sebastian
  • Drag and drop in GeUserArea

    Cinema 4D SDK c++ windows r19
    6
    0 Votes
    6 Posts
    1k Views
    C4DSC
    @a_block Thanks for the update. Much appreciated!
  • SetPercent() not working...

    Cinema 4D SDK r19
    7
    0 Votes
    7 Posts
    2k Views
    G
    @m_adam Hi, Thanks for your answer. I applied your changes and it worked like a charm . Thanks again!!!
  • 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)
  • 0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, as I said in my previous post, I have no ideal solution for you. By "awkward" I wanted to express, that I expected this to be not the solution you want, after all such a move by resizing would imply at least to size operations by the user, if both screen are equal size. And unfortunately I have nothing else to offer. Sorry. Bye, Andreas
  • InitRender() with large textures

    Cinema 4D SDK c++ r19
    21
    0 Votes
    21 Posts
    15k Views
    ManuelM
    hello, Thanks a lot for your feedback and happy to see your issue resolved. Cheers Manuel
  • 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 !
  • "Compile errors for R_pose_rot / (null)" in console?

    Cinema 4D SDK 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.
  • Add Hyperlink in user area defined by GeUser Area class

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    2k Views
    G
    @s_bach Hello Sebastian, Thanks a lot for clearing my confusion. Now I know what to do. Thanks for the help! Best Regards Gogeta
  • 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.
  • 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.