I use a python script and call it as a macro with the jython Interpreter
enabled.

Psuedo code looks like this:


from org.gjt.sp.jedit import Macros

get selected text
get file path
get the file extension

if extension is 'mel' url =
'/usr/autodesk/maya2008-x64/docs/Maya2008/en_US/Commands/'
elif extension = 'py' url =
'/usr/autodesk/maya2008-x64/docs/Maya2008/en_US/CommandsPython/'

if not text: text = 'index'

Here you can use whatever you like to launch a browser with your path 
'%s/%s.html' % (url,text)
subprocess.call()
webbrowser.open_new_tab()
etc...

I also added some logic to determine if the .html file exists, if it
doesn't, go to the index page which has search options. You can implement
a nearly identical script to search the maya node docs which is really
handy.

I prefer launching with a browser over infoViewer because you get search
functionality.

Good Luck.



> Does anyone know how to get jEdit to display Maya Python Docs?
> I'm using the jEdit Maya Editor Plugin w/Maya 2011.
> When I use the 'execute' command to send commands from jEdit to Maya,
> jEdit locks up (WinXP x64, JRE build 1.6.0_20-b02), but I realize that
> things have changed in 2011, so I can live without that
> However, I'd like to get the display of the Python Docs working. The
> display of the Mel Docs are working fine using infoViewer internal,
> but nothing happens when I try to display pythonDocs.
>
> I've found this workaround:
> jEdit/Utilities/Edit Options/Buffer Mode: Set to python (rather than
> python_Maya). This will display the mel version of the command and on
> that page is a link to the python version.
> However, being nth degree detail oriented, I of course want it to work
> correctly.
>
> In my Maya Editor Plugin options, I have:
> Mel path - C:\Program Files\Autodesk\Maya2011\docs\Maya2011\en_US
> \Comman ds\
> Py path - C:\Program Files\Autodesk\Maya2011\docs\Maya2011\en_US
> \Comman dsPython\
> Thanks.
>
> --
> http://groups.google.com/group/python_inside_maya
>


-- 
Shaun Friedberg
04-902-0443
http://www.pyrokinesis.co.nz
"Fire Is Fun, When You Think About It"

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

Reply via email to