• Problems with RegisterMessagePlugin in R20

    2
    0 Votes
    2 Posts
    926 Views
    a_blockA
    Hi, in Cinema 4D R20 the return value of NewObj() has changed. It now returns a ResultPtr<>. This simply means you need to properly handle the error case. In our C++ SDK documentation this is covered on the API Transition page and in more detail in the Error Handling manual. In the microsdk example there's a snippet showing one way to handle the error. One last request, please consider tagging your posts (as I did now here), so we can keep this forum tidy and easy to search. Cheers, Andreas
  • Run Project Tool with custom frameworks location

    project tool r20 sdk
    2
    0 Votes
    2 Posts
    1k Views
    r_giganteR
    Hi rsodre, thanks for writing us. The Cinema 4D SDK has it's own structure which actually needs that both the plugins and the frameworks folder share the same parent folder and this is what the SDK toolset (sourceprocessor and projecttool) expects to work with. Any change to this structure may lead to unexpected behaviors and is highly discouraged. Using the workaround you pointed out in the projectdefinition.txt is not expected to work as you've already checked. On the contrary using symbolic links seems to work, but again this is not officially supported. For the sake of completeness the ln command I used is ln -s <path to frameworks> <path to plugins>/../. and I succeeded to compile all the shipped plugins under macOS 10.13.6 with Xcode 9.4.1 Cheers, Riccardo
  • Bug in Python R20 [c4d.MDATA_EXTRUDE_PRESERVEGROUPS]

    python r20
    3
    0 Votes
    3 Posts
    2k Views
    Caleidos4DC
    Now Work Thanks Andreas
  • 2 Votes
    7 Posts
    5k Views
    a_blockA
    There is no way to get a filtered list of objects visible in the timeline. Sorry.
  • Render the Object with multiple cameras at the same time

    c++ r19
    3
    0 Votes
    3 Posts
    1k Views
    G
    @a_block HI Andreas, Thanks a lot for your reply. I am implementing the first approach as suggested by you as it seems the most feasible approach to my solution. I'll get back to you if I found any issue. Thanks again
  • WebSocket Server

    3
    0 Votes
    3 Posts
    2k Views
    X
    Thank for the reply r_gigante I did in fact find the interface without any issues but was having issues using it in any way, I got as far as telling that it needed to use the Class<T> template but was unable to figure out due to either lack of documentation or my own lack of C++ knowledge I'll likely just stick to my own WebSocket library in the meantime until this feature is well documented/supported
  • C++ new plugin with Project tool fail

    c++ r20 project tool
    9
    0 Votes
    9 Posts
    3k Views
    M
    @césar-vonc said in C++ new plugin with Project tool fail: The informations a bit dispatched and I don't find the doc very clear, for example, there is no link to download Project Tool on the Project Tool page, and globally not enough examples in the sdk. Second sentence on this page: https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_projecttool.html Agreed, the link is not very well visible, but it says "The Project Tool can be obtained from developers.maxon.net[URL-REMOVED]" And of course, the docs are very helpful, it just needs a bit of reading. [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
  • Need to render the camera view on a separate preview window in c++

    Moved
    5
    0 Votes
    5 Posts
    2k Views
    G
    Hi Gigante, Thanks a lot for your reply. I'll analyze that and will update you on the results. Thanks again !
  • LayerShader add Layers still not possible?

    python
    3
    0 Votes
    3 Posts
    1k Views
    indexofrefractionI
    thats a pity... i can convert c4d layer shaders to vray layer shaders but cant do it in the other direction, because i cant create layer shaders ... sigh
  • VideoPost execution in TeamRender

    2
    0 Votes
    2 Posts
    1k Views
    a_blockA
    Hi, it depends... Via the NETRUNONSERVER flag (to be returned from GetRenderInfo()) a VideoPost specifies, that it can be run on the server. Where the VideoPost is actually executed in the end, depends on the scenario. For a distributed single frame rendering, such a VideoPost will be executed on the server. On the other hand, for animation rendering, where every client finishes entire frames, the VideoPost will nevertheless be executed on the clients. Cheers, Andreas
  • RemoveUserData does not fully remove User Data

    python
    4
    0 Votes
    4 Posts
    2k Views
    D
    This worked. Thank you.
  • c4d.documents.SaveDocument modifies python source code file !!!

    r19 python
    6
    1
    0 Votes
    6 Posts
    3k Views
    J
    Hi, thanks but i managed to fix it. It wasnt a Cinema4d related error. Apparently a bad argument to one of python methods was causing it to return the filepath of the script instead.
  • Importing Modules (again)

    3
    0 Votes
    3 Posts
    2k Views
    A
    damn. totally didn't look there. sorry. Alfie
  • 0 Votes
    5 Posts
    2k Views
    S
    Hello, LoadDialogResource() and LayoutFlushGroup() should work perfectly fine together. Typically LayoutFlushGroup() is called in reaction to some user interaction or in InitValues(): Bool CreateLayout() { if (!GeDialog::CreateLayout()) return false; if (!LoadDialogResource(11000, nullptr, 0)) return false; return true; } Bool InitValues() { LayoutFlushGroup(11003); AddButton(100, BFH_SCALEFIT, 0, 10, "Button"_s); LayoutChanged(11003); return true; } best wishes, Sebastian
  • Issue Changing Modeling Axis

    python r20
    3
    0 Votes
    3 Posts
    2k Views
    D
    Thanks for the solution and explanation Yannick. It's working perfectly now and I can finish converting my scripts.
  • Set Asset Paths in python

    python r20
    5
    0 Votes
    5 Posts
    2k Views
    B
    Cool. Will do.
  • How to disable GI in the material manager on C++?

    Moved
    2
    0 Votes
    2 Posts
    1k Views
    S
    Hello, please post questions on Cinema 4D plugin development in the "Cinema 4D Development" forum. When doing so, please also use the appropriate tags. MATERIAL_GLOBALILLUM_GENERATE is the correct ID of that parameter. You just have to set the parameter value of the material you want to edit: material->SetParameter(MATERIAL_GLOBALILLUM_GENERATE, false, DESCFLAGS_SET::NONE); please notice that the ID is defined in the millum.h header file. If you have general questions on how to handle materials with the C++ API you will find information in the documentation: Materials and Shaders Overview BaseMaterial Manual Material Manual best wishes, Sebastian
  • Wonderful Project tool

    Moved project tool c++
    4
    0 Votes
    4 Posts
    2k Views
    S
    Hello @iluxa7k, I just move this thread to the "Cinema 4D Development" forum. When creating a new thread, please also always add the proper tags. best wishes, Sebastian
  • Read Before Posting

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied