![]() Without requiring a separate Blender installation or overwriting your personal settings.Īpplication templates can be selected from the splash screen or File ‣ New submenu. ![]() That can be selected to replace the default configuration, ![]() Then right click > Edit Templates > and select “Save Code Insert”.Application templates are a feature that allows you to define a re-usable configuration ![]() For instance the name of the code insert above is “Operator Modal Basic.py” The menus in the code insert menu are generated and organized dynamically based on their filename. To create a new code insert (or overwrite an existing one) just open a new text file, paste the code and name the file whatever you want. You can store comments on all your code inserts (to make sure you understand how they work months later after you’ve forgotten adding them), but have Hacker strip initial comments and their required imports upon pasting by activating “Strip Code Inserts” in the “Templates” menu in Hacker’s preferences menu. Sometimes it’s useful to have notes and the necessary imports included in your code inserts, other times they can get in the way (especially when inserting a lot of smaller pieces of code). If you prefer for the code inserts not to use addon name substitutions where Hacker detects a file is part of an addon, you can disable this in Hacker’s options under “Templates”. There’s no example of AddonPropper substitutions above, but if there were it would look like this “My Cool Addon” after inserted. ![]() Place AddonPropper where you want title cased and spaced versions of your addon name to appear such as descriptions. Place addon_lower where you want lower case and underscored versions of the name to appear such as in the bl_idname. To add name substitutes in your own code, use ADDONUPPER where you want all caps text of your addon name to be substituted such as at the beginning of menu and operator classes. but the idea is you’ll be typing and replacing much less text overall. The operator would still require some adjustments to the name, description etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |