That suggestion was just saying you have the option of writing to disk instead 
of stdout, but I supposed that could just be a redirect instead of something 
your script does. The idea being that your readMayaFile would not just be a 
custom script used only for your GUI, but rather a general purpose utilty 
script for dumping out various information from a maya file in a format that 
can be used in another program.

And I see the image formats defined here:
<maya install location>/scripts/others/createImageFormats.mel



On Dec 9, 2012, at 7:55 AM, šãñ wrote:

> yes I have done the first option and it works like charm... i fetched all 
> render globals to my PyQt4 app except the imageFormat (i.e. jpg,iff,png bla 
> bla) I dont know which mel file in the scripts folder of maya directory they 
> all are otherwise i could have parsed and pulled it in my app. i dont know if 
> its doable.. 
> 
> well for the 2nd and 3rd options do you mean it will be picked to disk or 
> make json file of data returned by readMayaFile.getCams() ?
> 
> 
> On Sun, Dec 9, 2012 at 9:16 PM, Justin Israel <[email protected]> wrote:
> Oh good. Glad my last reply was actually helpful to your goal. 
> That is definitely the best route, I think, out of your options.. to just run 
> your readMayaFile.py script directly with parameters, and get back results. 
> Maybe like this:
> 
> mayapy readMayaFile.py --cameras </path/to/scene.ma>
> 
> You could even make it more generic as a utility and have different options 
> as the return type:
> 
> mayapy readMayaFile.py --cameras --pickle </path/to/scene.ma>
> mayapy readMayaFile.py --cameras --json -o out.json </path/to/scene.ma>
> 
> Then what you have is a general scene file parser.
> 
> 
> 
> On Dec 7, 2012, at 6:25 AM, san wrote:
> 
>> as a part of my learning PyQt4 I started making a gui(see attachment) where 
>> I implement all the examples I learn from video tuts or book I am referring,
>> 
>> however I count figure out how should I implement the method to show text 
>> message on the status bar when user hover mouse over a widget[link to 
>> pastebin ]
>> 
>> and secondly I dont understand how come this method to select Directory is 
>> not working?
>> 
>>     def showDirDialog(self):
>>         directory=os.path.expanduser('~')
>>         dirPath=QtGui.QFileDialog(self,"Select Render Directory",directory)
>>         dirPath.setFileMode(QtGui.QFileDialog.DirectoryOnly)
>> 
>> 
>> -- 
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings: 
>> http://groups.google.com/group/python_inside_maya/subscribe
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
>  
>  
> 
> 
> 
> -- 
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to