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. peter_horvath
    3. Best
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 23
    • Best 3
    • Controversial 0
    • Groups 0

    Best posts made by peter_horvath

    • Animated viewport preview in Node Materials

      I'd like to add support for animated previews in my custom node space. I assumed, that enabling Animate Preview on the Viewport tab of the material means that the GetMaterialParameters() function of my viewport material is called every time the frame changes in the scene.
      eed0004f-9cb2-44ac-a1ec-e387e9fc1811-image.png
      However that does not seem to be the case, nothing happens when moving the timeline. Am I missing something? Do you have an example of how to support animated previews?

      posted in Cinema 4D SDK c++
      P
      peter_horvath
    • RE: Particles and RenderDocument

      Hey Ferdinand,

      Nothing special about the context. Tried cloning with AliasTrans, but it does not help.

      I'm attaching a simple code taken from the manual in case you want to reproduce the issue. The code adds two commands, one calling RenderDocument() with the RENDERFLAGS::NODOCUMENTCLONE flag and one without. You can see, that the one with the flag does not render the particles. Note, that no manual cloning is involved in the example, just loading the document, which might indicate that it's indeed a bug.

      test_renderdocument.zip

      Thanks,
      Peter

      posted in Bugs
      P
      peter_horvath
    • Copy over additional nodes with a Node Material

      This might be a very unique use-case.
      We define a custom node system that is used in Node Materials. We have a shader that references another nodes from the scene, such as materials and objects. Currently when the Node Materials is copied over to a new scene, these references are lost. Ideally, the referenced nodes should be cloned and copied over to the new scene along with the material. Is it possible to do this with the current SDK?
      This was not an issue with our legacy material, since it was our custom MaterialData implementation, and so we had control over copying by overriding the CopyTo() method.

      posted in Cinema 4D SDK c++
      P
      peter_horvath