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

    Links on Tag are not animated when in Extrude Object cache

    Cinema 4D SDK
    c++
    2
    3
    488
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ECHekman
      last edited by

      I have a Tag on an Extrude object. The Tag has links (DA_ALIASLINK) on it to ShaderData. These shaderdata's have animated values.
      The extrude object correctly copies over the Tag to the cache object, including copies of all the linked ShaderDatas.
      However none of the copied objects get animated when scrubbing the timeline - but the original objects do. I suspect this is because the expected behavior is that normally when the tag changes, the Extrude object recreates its cache. However this is not triggered for linked objects?

      I have a few "creative" solutions. But im wondering if there is a clean solution for this issue.

      Setup:
      f237d2dc-673f-4f05-a1de-2bb26ed53da1-image.png

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @ECHekman
        last edited by

        Hey @ECHekman,

        Thank you for reaching out to us. I could be cheeky and say 'caches are caches' 🙂 . To be a bit less cryptic, caches are static and Cinema 4D will not evaluate them once created. This means for example that expressions (tags) inside caches will not be evaluated when the scene is being evaluated (and that cache is not being rebuild from scratch).

        When you want to have a tag inside a cache and that tag update with the scene, the only option would be to evaluate that tag when you create the cache and then rebuild that cache on every scene update. That of course only works when you own/implement the cache owner and also is very much not recommended, as this is a recipe for making Cinema 4D very slow.

        Caches cannot evaluate expressions, that is intended and there is no work-arround, as caches would otherwise not be caches anymore.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • E
          ECHekman
          last edited by

          Thanks Ferdinand, that was kind of what I expected the awnser to be. I'll use a creative solution that doesnt trigger an unnessesary recreation of the Extrude cache

          1 Reply Last reply Reply Quote 0
          • First post
            Last post