Every so often Id like to search the python API for a keyword rather then fossik about and find it myself.
Heres a nifty python script that gets you to type in a search and then opens the google search results for the BPython api - google will only look at the 1 api doc so you wont get double results.
I tried to get this happening in firefox’s search box but the “Roll your own” creator couldent define a URL sibdir to search.
Access this script from the help menu. - any additions welcome.
#!BPY
"""
Name: 'Search BPY API'
Blender: 240
Group: 'Help'
Tooltip: 'Search the BPython API'
"""
import Blender, webbrowser
search_but= Blender.Draw.Create('')
pup_list= [('', search_but, 0, 255, 'Search String')]
if Blender.Draw.PupBlock('Search BPython API', pup_list):
text= '+'.join(search_but.val.split()) # replace white spaces for +'s
webbrowser.open('http://www.google.com.au/search?filter=0&num=100&q=inurl:~cpbarton+inurl:BPY_API+' + text)