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

    Odd behaviour w. texture paths

    SDK Help
    0
    1
    155
    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
      Helper
      last edited by

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

      On 27/04/2005 at 05:59, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      One exported model (from Maya via .fbx) shows odd behaviour regarding texture file paths. When I query the CH_TEXTURE of some channel (i.e. CHANNEL_COLOR) it doesn't contain a path name. In C4D however it's prefixed by some absolute path that I have no idea where it's coming from.

        
      var myChannel = theMaterial->GetChannel(theChannelId);  
      var myContainer = myChannel->GetContainer();  
      var myTexturePath = myContainer->GetString(CH_TEXTURE);  
      

      e.g. 'myTexturePath' is 'skybox.rgb' but the field in C4D reads 'D:\ST\skybox.rgb'. The 'D:\ST' part does not exist on my drive and is nowhere to be found in the setup. It's *NOT* in the GlobalTexturePath()! Oddly enough this only happens for '.rgb' (SGI RGB) images; '.png' and '.jpg' files are fine.

      If I open the texture file selection dialog I can choose 'skybox.rgb' from the 'TEX' directory and all is well but there are too many files to do that by hand...

      Thanks in advance,
      -Ulrich

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