Message 1 of 1
How can i import an image plane with python?

Not applicable
03-03-2011
04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I trying to create an import image plane in maya with python but i don't find it.
Can you help me please ?
First, i get my file :
Then i create my image plane :
I trying to create an import image plane in maya with python but i don't find it.
Can you help me please ?
First, i get my file :
cmds.fileBrowserDialog( m=0, fc=importImage, ft="image", an="Import_Image", om="Import")
Then i create my image plane :
def importImage( fileName, fileType):
'''Affichage de l'image pour une image plane'''
mel.eval('string $fileName=python("fileName")')
mel.eval('string $fileType=python("fileType")')
mel.eval('createImportedImagePlane { "cameraShape" } "$fileName" "$fileType"')
return 1