Creating a hidden operator

Sometimes it is necessary to register an operator that couldn’t be called by the user directly. For example, if this operator is supposed to be called only by another operator after a series of checks or additional actions.

However, if there is no launch button for such an operator in the UI, the user can still call it by selecting from the list of operators found through the search.

To remove an operator from the search results, we need to specify the “INTERNAL” option in its “bl_options” parameter.

For example, let’s register the simplest operator that adds a default cube to the scene in the common way:

Such an operator will appear in the search results:

Now let’s add the “INTERNAL” option to it:

After that, the operator will not be shown in the search results:

0 0 votes
Article Rating
Notify of
0 Comment
Inline Feedbacks
View all comments