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

    GenerateTexturePath issue

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 310 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/02/2010 at 18:21, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5+ 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      In my needs to access bitmaps I've found a problem.
      According to the SDK "GenerateTexturePath("name", doc->GetFileName)"
      it should use the Cinema texpath routines.

      "[Filename] GenerateTexturePath([string] texturename, [Filename] docpath);
      This functions searches with CINEMA's own routines in all paths (tex, startup, global texture paths, document) for the file specified with the name texturename. If found it will return the full pathname for access."

      However, I can only generate a path if the texture is within the global texture path(s).
      The other places (document level, tex folder level etc) is simply ignored.

      Atm I've written my own search functions, but it's a bit clumpsy compared with
      if the GenerateTexPath function should work as described.

      I've tried in R10.5 and up with the same issue it seems.

      Cheers
      Lennart

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/03/2010 at 06:45, xxxxxxxx wrote:

        It's a mistake in the docu. You have to pass the path of the document without the filename of the document.

          
        var fn =  doc->GetFilename();  
        fn->RemoveLast();  
          
        var res = GenerateTexturePath("test.jpg",fn);  
          
        if (res!=NULL)  
          println("found at ", res->GetFullString());  
        else  
          println("not found");  
        

        cheers,
        Matthias

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 01/03/2010 at 14:25, xxxxxxxx wrote:

          Thanks, Matthias.
          Pretty logical 🙂

          Cheers
          Lennart

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