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
    • Recent
    • Tags
    • Users
    • Login

    Full path to texture? [CLOSED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 332 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 30/03/2015 at 10:32, xxxxxxxx wrote:

      I've just discovered that:

      path = texture[c4d.BITMAPSHADER_FILENAME]
      

      only gives you the full path to a texture if C4D didn't find it in one of the 'Texture Paths' set here: Preference>Files>Texture Paths

      I need to always be able to get the full path to the texture.
      I can't just search all the texture paths recursively for a matching file name, because there could be more than one result because the same file name could be present in different folders.

      How do I get the full path to a texture?
      C4D must have it stored somewhere.

      Thanks,

      Chris

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

        On 30/03/2015 at 10:34, xxxxxxxx wrote:

        Hi,
        this was discussed just recently. See this thread.

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

          On 30/03/2015 at 11:28, xxxxxxxx wrote:

          Moving to other thread.

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