简体   繁体   中英

How do I hack the blender help button?

I do not have/will_not_have constant internet access, and I am a blender noob, so I did the sensible thing and downloaded the offline manual, however, the "help button" will still link to the internet. I'm very insaneley forgetful, also I like my development environments to be self-reliant.

Therefore: I am afraid I may forget I have the manual on my system and attempt to download it a second time, or that I will have to constantly open up file manager just to use it real quick.

All this could be fixed by changing the default URL to the file directory location I have the html doc of said manual within, but I'm also a newb to python and can't find the exact name of the folder nor file that contains the script for the little URL. I do have c++ programming experience as well as a basic comprehension of the command line. All this is driving me nuts; I'm willing to work for the result, but I'm in desperate need of some pointers at the very least, I am much obliged.

Thank You to anyone who took the time to read this!!!

(I have an explanatory screenshot here: { https://drive.google.com/file/d/0B4stTAVYtcSVR3I0Z0R3bVR3RjQ/view?usp=drivesdk }(via google drive) (don't have enough rep to post image directly apparently)) [ this is a photo of the button I'm talking about ]

OP's goal is to find where, in Blender's sources, is called some specific url, say some_url .

To find some_url in all the python files inside of the src directory, you can do the following in bash:

$ find src -name "*py" | xargs grep some_url

虽然上面/早期的答案足够正确,可以帮助我找到解决方案,因此是很好的答案(因为没有它们我将无法做到):一个非常直接的答案是:“转到:”~ /blender/scripts/bl_ui ”文件位置。我要查找的特定 URL 在“space_info.py”文件中。在该文件中使用“ctrl F”搜索(假设您已在文本编辑器中打开它,并且您有 root 权限),找到恰好嵌套在描述“帮助”按钮如何操作的代码中的所述 URL 的版本(建议在下一步之前保存备份),然后将该 URL 替换为确切的指向您希望它带您访问的离线 html 文件的文件路径”这些是我遵循的步骤,所以很可能其他人会有相同或非常相似的问题:这是我的答案,我希望它简化你的追求

How to Force Blender to Load Local Blender Docs instead external Help Link of url =
"https://docs.blender.org/manual/en/dev/"

HOW I did it. I downloaded the "blender_manual.zip" file ( Blender 3.3 Version at the time I tried this Hack) from the URL "https://docs.blender.org/manual/en/dev/" which has a link on that page,which is https://docs.blender.org/manual/en/dev/blender_manual_html.zip (Don't use the EPUB download option ( https://docs.blender.org/manual/en/dev/blender_manual_epub.zip ). I un-Zipped the downloaded "blender_manual.zip" file into a new folder "BlenderDocs" I made in my root directory ( the drive on which Blender is installed) c:\BlenderDocs and removed the contents of the "html-en-dev-r4466" folder to which it had been unzipped and pasted the contents into the main "c:\BlenderDocs" folder. Then as adviced in the blog I launched Notepad++ and dragged the file "space_info.py" from the "C:\Program Files\Blender Foundation\Blender\2.79\scripts\startup\bl_ui" folder into Notepad++ and saved a back-up of it into the folder where you found this notepad text file. Using Notepad++ save "ALL Types" mode I saved it as "space_info.py.UNCHANGED" for safe keeping to a known folder. Then I went into " C:\BlenderDocs" folder and double clicked on "index.html" to launch in my Firefox web browser. I Highlighted the URL indicated in the Firefox URL slot at the top which said "file:///C:/Blender%20Docs/index.html". copy pated into a new notepad.txt file and I changed the statement to file:///C:/BlenderDocs/index.html and replaced the statement "https://docs.blender.org/manual/en/dev/" on line 321 of Notepad++ with "file:///C:/BlenderDocs/index.html" instead.

I changed the "space_info.py" file extension in the "C:\Program Files\Blender Foundation\Blender\2.79\scripts\startup\bl_ui" folder to "space_info.py.ORIGINAL.WORKING" as a safety precaution.

and from inside Notepad++ I saved the modified "space_info.py" first to my desktop for safe-keeping reference and then copy pasted the same file into the "C:\Program Files\Blender Foundation\Blender\2.79\scripts\startup\bl_ui" folder with ADMINISTRATION privilege to replace the original.

I launched Blender in the Usual way by double clicking on its Desktop Icon and tested the Help Menu first item. Perfectly the internal Help HTML pack from the BlenderDocs folder was presented to me in my Firefox browser. All except the External links work. But that is understood as the blender_manual.zip file cannot contain all the vast help material from outside the Help Wiki! Of course in a clinch you can now change the "space_info.py.ORIGINAL.WORKING" [after deleting "space_info.py" the modified version] back to "space_info.py" and re launch Blender. It will link to the Web based help WIKI. You can modify the statement at LINE 321 of Notepad++ to any URL for that matter and get blender HELP to link to that new URL. I believe This is a handy get local HELP HACK for all Blender Users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM