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

    using paths to files.

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 315 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 19/11/2009 at 16:24, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I use the following code to find the file Venus_Map.jpg.

      elevationData->SetFilename(BITMAPSHADER_FILENAME, Filename("Venus_Map.jpg"));

      However it will only find that file if it is in the temp directory for c4d.

      I would like it to find that file in a specific location,   namely in the plugin folder in a sub folder called presets and in another sub folder called venus.

      so the directory listing looks like this.

      #Planet\presets\venus\Venus_Map.jpg

      How would I do that in the code I have,, I tried using the path but it won't wok.   Can someone help me?

      Thanks,

      ~Shawn

      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 19/11/2009 at 17:47, xxxxxxxx wrote:

        Filename path = GeGetPluginPath()+Filename("presets")+Filename("venus")+Filename("Venus_Map.jpg");
        elevationData->SetFilename(BITMAPSHADER_FILENAME, path);

        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 19/11/2009 at 19:30, xxxxxxxx wrote:

          Thanks a million Robert.

          PMing you with a question.. 🙂

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