Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • maxonM

      Read Before Posting

      • • maxon
      1
      0
      Votes
      1
      Posts
      2.3k
      Views

      No one has replied

    • I

      Wonderful Project tool

      project tool c++ • • iluxa7k
      4
      0
      Votes
      4
      Posts
      1.7k
      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

    • Z

      How to disable GI in the material manager on C++?

      • • zhhm1123
      2
      0
      Votes
      2
      Posts
      995
      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

    • B

      Set Asset Paths in python

      python r20 • • bonsak
      5
      0
      Votes
      5
      Posts
      1.7k
      Views

      B

      Cool. Will do.

    • D

      Issue Changing Modeling Axis

      python r20 • • DavidW
      3
      0
      Votes
      3
      Posts
      1.4k
      Views

      D

      Thanks for the solution and explanation Yannick. It's working perfectly now and I can finish converting my scripts.

    • P

      LayoutFlushGroup doesn't place the insertion point inside the group

      r19 c++ windows • • peterakos
      5
      0
      Votes
      5
      Posts
      1.6k
      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

    • A

      Importing Modules (again)

      • • alfieB
      3
      0
      Votes
      3
      Posts
      1.4k
      Views

      A

      damn. totally didn't look there. sorry.

      Alfie

    • J

      c4d.documents.SaveDocument modifies python source code file !!!

      r19 python • • jiceq
      6
      0
      Votes
      6
      Posts
      2.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.

    • D

      RemoveUserData does not fully remove User Data

      python • • dmp
      4
      0
      Votes
      4
      Posts
      1.5k
      Views

      D

      This worked. Thank you.

    • N

      VideoPost execution in TeamRender

      • • neon
      2
      0
      Votes
      2
      Posts
      1.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

    • indexofrefractionI

      LayerShader add Layers still not possible?

      python • • indexofrefraction
      3
      0
      Votes
      3
      Posts
      1.2k
      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

    • G

      Need to render the camera view on a separate preview window in c++

      • • gogeta
      5
      0
      Votes
      5
      Posts
      1.9k
      Views

      G

      Hi Gigante,
      Thanks a lot for your reply. I'll analyze that and will update you on the results. Thanks again !

    • César VoncC

      C++ new plugin with Project tool fail

      c++ r20 project tool • • César Vonc
      9
      0
      Votes
      9
      Posts
      2.9k
      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.

    • X

      WebSocket Server

      • • xNWP
      3
      0
      Votes
      3
      Posts
      1.4k
      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 😄

    • G

      Render the Object with multiple cameras at the same time

      c++ r19 • • gogeta
      3
      0
      Votes
      3
      Posts
      1.3k
      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 😇

    • dskeithbuckD

      How to Get the Selected Keyframes in Active Timeline/FCurve Manager

      python • • dskeithbuck
      7
      2
      Votes
      7
      Posts
      4.4k
      Views

      a_blockA

      There is no way to get a filtered list of objects visible in the timeline. Sorry.

    • Caleidos4DC

      Bug in Python R20 [c4d.MDATA_EXTRUDE_PRESERVEGROUPS]

      python r20 • • Caleidos4D
      3
      0
      Votes
      3
      Posts
      1.4k
      Views

      Caleidos4DC

      Now Work
      Thanks Andreas

    • rsodreR

      Run Project Tool with custom frameworks location

      project tool r20 sdk • • rsodre
      2
      0
      Votes
      2
      Posts
      962
      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

    • V

      Problems with RegisterMessagePlugin in R20

      • • victor
      2
      0
      Votes
      2
      Posts
      895
      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

    • indexofrefractionI

      submenu for python plugin

      python • • indexofrefraction
      7
      0
      Votes
      7
      Posts
      2.1k
      Views

      indexofrefractionI

      yup.. well..
      i dont expect that to change very soon... so i guess we have to live with it
      still thanks for your patient support 🙂