Как удалить аддон из блендера
Перейти к содержимому

Как удалить аддон из блендера

отменить регистрацию и удалить аддон в блендере с помощью python не удаляет элемент из меню

Я загрузил некоторый скрипт экспортера mesh, чтобы узнать, как написать сценарий экспорта в python для блендера (2.6.3).

Скрипт следует за стандартным регистром/регистратором, чтобы зарегистрировать или отменить регистрацию сценария.

Проблема заключается в том, что когда я использую runScript для запуска скрипта из текстового редактора (после его изменения для отмены регистрации при запуске), он удаляет скрипт, но оставляет в нем меню unclickbale, которое я не могу удалить. Если я снова запустил регистр, он вернет неактивное меню в пункт меню clickable exporter, но, кроме того, он добавит еще одну копию элемента меню. Причина, по которой я хочу продолжать регистрироваться и регистрироваться, в основном потому, что я хочу внести изменения и протестировать их. Возможно, мне нужно запустить функцию напрямую без регистрации, но хотя теперь у меня есть это в моем меню экспорта:

enter image description here

Как удалить эти элементы и не иметь много версий моего сценария в меню экспорта (в зависимости от того, внес ли я изменения), также следует просто поместить функцию вместо регистрации/отмены регистрации, когда я занимаюсь скриптом и пытаюсь выкинуть?

Blender 2.9 — Быстрый старт. Аддоны

Testing — Тестовые. Папка addons_contrib (Расположена в Blender\2.90\scripts). Обычно она пустая, но если вы скачали тестовую сборку, то в данной папке будут присутствовать аддоны.

С зажатым Shift можно выбрать сразу несколько.

Install — Установка.

Refresh — Обновить список аддонов.

Search — Поиск аддона по названию.

Enabled Add-ons Only — Отобразить только включенные аддоны для текущей Категории.

Категории (По умолчанию — All) — Показывать только аддоны из определенной категории.

Filter Add-ons:

Включить фильтр аддонов. Если по какой-то причине вам аддон не нужен, то вы можете включить фильтрацию и активировать только те аддоны, которые необходимы в данный момент. По умолчанию включены все и это может повлиять на скорость запуска Blender.

Если вы хотите, что бы при запуске всегда стояла данная галочка, то в чистом файле включите ее и сохраните как стартовый файл: File — Defaults — Save Startup File. Напоминаю, что это работает для всего.

Установка

Нажмите кнопку Install и выберите .zip файл аддона. Для потверждения нажмите Install Add-on. Он автоматически появится в списке. Активируйте галочку.

Бывает такое, что скаченный аддон не имеет архива. Вы можете просто заархивировать в zip формат и установить, либо скопировать папку в Blender\2.90\scripts\addons или в пользовательскую папку C:\Users\[Имя пользователя]\AppData\Roaming\Blender Foundation\Blender\ и выбрать нужную версию Blender. Быстрый переход к папке AppData — %Appdata% в Проводнике Windows.
Если вы устанавливаете непосредственно в папку Blender, то у вас не будет возможности быстро перенести аддоны при запуске новой версии Blender. Поэтому рекомендую устанавливать в пользовательскую папку.

Blender 2.8 автоматически сохраняет настройки.

Рассмотрим некоторые полезные аддоны, которые чаще всего рекомендуют.

Add-ons

The Add-ons section lets you manage secondary scripts, called “Add-ons” that extends Blender’s functionality. In this section you can search, install, enable and disable Add-ons.

../../_images/editors_preferences_section_addons.png

Blender Preferences Add-ons section. 

Finding Add-ons

Blender comes with some pre-installed Add-ons already, ready to be enabled. But you can also add your own, or any interesting ones you find on the web.

Blender’s add-ons are split into two groups depending on who writes/supports them:

Official: Add-ons that are written by Blender developers.

Community: Add-ons that are written by people in the Blender community.

Shows only enabled add-ons for the current Category.

Add-ons are divided into categories by what areas of Blender they affect.

Installing Add-ons

There are hundreds of add-ons that are not distributed with Blender and are developed by others. To add them to the list of other add-ons, they must be installed into Blender.

To install these, use the Install… button and use the File Browser to select the .zip or .py add-on file.

Now the add-on will be installed, however not automatically enabled. The search field will be set to the add-on’s name (to avoid having to look for it), Enable the add-on by checking the enable checkbox.

Scans the Add-on Directory for new add-ons.

User-Defined Add-on Path

You can also create a personal directory containing new add-ons and configure your files path in the File Paths section of the Preferences. To create a personal script directory:

Create an empty directory in a location of your choice (e.g. my_scripts ).

Add a subdirectory under my_scripts called addons (it must have this name for Blender to recognize it).

Open the File Paths section of the Preferences.

Set the Scripts file path to point to your script directory (e.g. my_scripts ).

Save the preferences and restart Blender for it to recognize the new add-on location.

Now when you install add-ons you can select the Target Path when installing 3rd party scripts. Blender will copy newly installed add-ons under the directory selected in your Preferences.

Enabling & Disabling Add-ons

To enable or disable an add-on check or uncheck the box to the right of the add-ons shown in the figure below.

../../_images/editors_preferences_addons_enable.png

Enabling an add-on. 

The add-on functionality should be immediately available.

Add-ons that activate or change multiple hotkeys have a special system of activation. For example, with the 3D Viewport Pie Menus add-on for each menu there is a selection box to activate the menu and its hotkey.

If the Add-on does not activate when enabled, check the Console window for any errors that may have occurred.

Add-on Information

You can click the arrow at the left of the add-on box to see more information, such as its location, a description and a link to the documentation. Here you can also find a button to report a bug specific of this add-on.

Add-on Preferences

Some add-ons may have their own preferences which can be found in the Preferences section of the add-on information box.

Some add-ons use this section for example to enable/disable certain functions of the add-on. Sometimes these might even all default to off. So it is important to check if the enabled add-on has any particular preferences.

© Copyright : This page is licensed under a CC-BY-SA 4.0 Int. License. Last updated on 06/13/2022.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *