Odd behaviour w. texture paths



  • 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


Log in to reply