I want to call readMayaFile.py from my GUI made in PyQt4 and readMayaFile.py contaains a method getCams that returns list of cam in the maya scene file supplied..
here is what I have in the readMayaFile.py
readMayaFile.py
import os
import maya.standalone
import maya.cmds as cmds
##fileToOpen="I:/scenes/san_telus_pan_v009.ma"
def getCams(phileToOpen):
maya.standalone.initialize(name='python')
cmds.file(phileToOpen, force=True,open=True)
cams=cmds.ls(type="camera")
return cams
##getCams(fileToOpen)
How do I do i get return list of items from reaadMayaFle.py to fill up the QComboBox ?
basically if you have any other idea to get list of cameras from scene other than parse ma file is good