Home Technical Talk

Textures won't load from CD! GARGH!

GARHG!!

I have a Maya project with various models in one folder and textures in another, it loads fine on my computer because the source is my computer - but how do I get this to load correctly from a CD?

I've been searching high and low how to fix this!

Replies

  • Quillisia
    Have you tried putting the textures on the CD and targeting those instead of the ones on your machine?
  • neovirtu
    Quillisia wrote: »
    Have you tried putting the textures on the CD and targeting those instead of the ones on your machine?

    Well if I target them "D:\textures" for example, not every drive that the CD will be used in will be a D:\ drive, right? :(
  • SUNCHIRP
    Is there a reason why you can't put all your textures in the same root folder as your mesh ? As that would / should rectify your problem ?



    EDIT :

    Alternatively ( which is a slightly long winded process :( ) : -

    Save your file as a Maya ASCII, .ma

    As an example, let's assume you have an object called Test.ma, which sources textures from a folder called images, after saving your Maya file, open it within a text editor, look at where the images are called, for instance, you may see

    setAttr ".ftn" -type "string" "D:/images/whatever.jpg";

    there will be many instances of this line for each texture called throughout the script, so you will need to do some sort of search and replace within your chosen text editor, you would replace the line with : -

    setAttr ".ftn" -type "string" "images/whatever.jpg";

    So, basically, you want to remove the D:/ from each instance of the lines calling the textures, this example assumes that you have your model directory and your images directory inside of it, like this : -

    Model ( Directory ) containing Test.ma and within the Models directory the images ( Directory ). I hope this helps and hasn't confused ?
  • rube
    Offline / Send Message
    rube polycounter lvl 17
    Sounds like you haven't been setting your project properly. make sure you have a folder set for your textures (it defaults to sourceimages). Then it won't matter where you put the project it will load relative to the project folder. ie C:/something/something/mayaproject/sourceimages will jwork just like d:/mayaproject/sourceimages
  • SUNCHIRP
    Hi. rube

    Normally I would agree with that, but the project folder would probably be hardcoded once written to a CD, so it could still pose as a problem should neovirtu need to have the CD accessed from different people on different machines with different drive mappings. :)

    Regards.
  • rube
    Offline / Send Message
    rube polycounter lvl 17
    Not if the project is set properly before everything is burned to a cd... then you can move a project where ever you want and it will load just fine since the drive mapping is ignored as everything loads relative to the project directory. Unless of course you set your project and then navigate outside of it to find your textures... which is bad for this very reason.
Sign In or Register to comment.