Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / How can i import an image plane with python?
  RSS 2.0 ATOM  

How can i import an image plane with python?
Rate this thread
 
52910
 
Permlink of this thread  
avatar
  • samateso
  • Posted: 02 March 2011 11:02 PM
  • Total Posts: 1
  • Joined: 03 March 2011 06:56 AM

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 :

cmds.fileBrowserDialogm=0fc=importImageft="image"an="Import_Image"om="Import")

Then i create my image plane :

def importImagefileNamefileType):
 
'''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


Replies: 0