I keep getting the following error:

ERROR, imageIsFile, can't read `/user_data/custom_scripts/'. Is a directory

File read in  0.024 seconds.
Error: Failed to open IFF file for reading : 
/user_data/.tmp//maya108600x7fff97d2ea00.iff

Despite loading in the obj plugin, the error ensues.. Not sure why it keeps 
calling for this .iff file

This is my code:
import os
import maya.standalone
from sys import argv
maya.standalone.initialize()
 
import maya.cmds as cmds
 
def main():   
    obj_file_path = argv[1]
    print obj_file_path

    # Check for path validity
    check_open_path = os.path.isfile(obj_file_path)
    if not check_open_path:
        raise IOError('Input file path does not exists. Please check or 
make sure that full path is used.')
        return

    cmds.loadPlugin('objExport.so')
    cmds.file(obj_file_path, i=True, type='OBJ')

if __name__ == "__main__":
    main()


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9601acca-ea68-4f65-b715-1339ed489f9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to