I did not realize that I used a function from Python 2.6 so the
scriptManager does not work on versions of before Maya 2010. I used a
few functions from the pydoc module to get the info normally shown by
the help function. In hind site I should have just parsed the files
myself but I was trying to use Python's built in functions. Maybe
there is a better way.

This is what I did to get the help documentation:

import pydoc
moduleName = 'math'
moduleFunc = 'acos'
mod = __import__(moduleName)
func = mod.__dict__[moduleFunc]
helpStr = pydoc.render_doc(func)
helpStr = pydoc.plain(helpStr)
print helpStr

Ryan
Character TD
Naughtydog

On Mar 16, 10:19 am, Martin La Land Romero <[email protected]>
wrote:
> Thanks man!
>
> Martin
>
> On Tue, Mar 16, 2010 at 8:17 AM, Adam Mechtley <[email protected]>wrote:
>
>
>
> > Hey folks,
>
> > I posted this over on tech-artists.org, but I figured some here may also
> > find it interesting. Ryan Trowbridge (Naughty Dog) and I just wrapped up a
> > MasterClass for Autodesk on Maya Python. It's split into two basic examples,
> > the first of which is Ryan discussing an application of threading, and the
> > second is an API plug-in I developed to help out in animation setups (a DG
> > node and a command to go with it).
>
> > It is available free on the Area 
> > website<http://area.autodesk.com/gdc/class2>(you'll need to register a free 
> > account to watch it).
>
> > Take a look and please let me know if you have any comments or criticisms
> > about the content we covered. I figured there are enough smart people here
> > that you will catch any mistakes we might have made ;)
>
> > -Adam
>
> > --
> >http://groups.google.com/group/python_inside_maya
>
> --
> Martin La Land 
> Romerowww.martinromerovfx.comhttp://martinromerovfx.blogspot.com/
> [email protected]
> (415)261-2172

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to