Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    GetAllTextures() and the take system

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 539 Views
    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.
    • H Offline
      Helper
      last edited by

      On 26/02/2018 at 12:13, xxxxxxxx wrote:

      Hello,

      I've noticed GetAllTextures() does not seem to account for take overrides.  Is this correct? Should I iterate through each override to search for additional textures?

      How does the 'Save Project with Assets' command collect all the textures?

      --
      Kevin

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 27/02/2018 at 06:34, xxxxxxxx wrote:

        Hi Kevin,

        unfortunately our documentation is not correct (or at least ambiguous) here. And it also misses to mention a fact.
        The isNet parameter of GetAllTextures() indeed defaults to true (the prototype at least suggests differently). Now, for rendering, it can always be one take rendered at once and especially for net rendering, a reduced amount of transferred textures is desirable. So, with isNeet being true, GetAllTextures() delivers only the textures of the current take. Set the parameter to false to get all.

        Internally GetAllTextures() works with a broadcast of MSG_GETALLASSETS (MultiMessage() to the dcoument) and in the flags it uses ASSETDATA_FLAG_CURRENTTAKEONLY if the isNet parameter is set to true.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 27/02/2018 at 06:49, xxxxxxxx wrote:

          Thanks Andreas!  That clears it all up 🙂

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