If you ever wondered, where does that thing 'live' in the code base.
If you ever wondered, where does that thing 'live' in the code base.
Here's one method...
If you ever wondered, where does that thing 'live' in the code base.
Here's one method...
Comments
great, thank you.. this is very helpful. For searching the codebase, I am using emacs with the shortcut 'c-x p g'. You navigate to the directory you want to search in the emacs file browser Dired, From there you invoke the search with the shortcut. For searching I have installed ripgrep as a replacement for xargs/grep.. it is quite fast, I will be using this method a bunch as I dive deeper into IfcOpenShell.
For the people who prefer written instructions over video:
In the Blender Preferences -> Interface -> Display activate "Developer Extras" and "Python Tooltips"
If you now hover over a button a tooltip appears which shows the respective Python command for that button.
With the Right-Click context menu you can choose to copy the Python command and use it to search the code base.
Also just below, "Edit Source" will open the entire python file where this particular button is defined in the Text Editor. It does not work for some builtins UI elements as these are defined in C / C++, not python.