0
$\begingroup$

Is there anybody who know how can I run some functions in an addon in blender start?

$\endgroup$
  • $\begingroup$ By execute you mean enable? Have you clicked the Save User Settings button on the bottom of the Blender User Preferences window? $\endgroup$ – moonboots Jul 10 '18 at 9:41
  • $\begingroup$ No. I want to run my addon without any button or something like that. I want it to be run when blender opens. $\endgroup$ – Tanguy Jul 10 '18 at 9:43
  • $\begingroup$ Juste after you've enabled the addon, have you clicked the Save User Settings button on the bottom of the Blender User Preferences window? You need to do this if you want your addon to run on your next session $\endgroup$ – moonboots Jul 10 '18 at 9:48
  • $\begingroup$ Yes I did it, but that's not what I'm asking for. I want an automatic run just after the user open Blender. $\endgroup$ – Tanguy Jul 10 '18 at 9:56
  • 1
    $\begingroup$ @Tanguy the confusion stems from the terminology used in your q. An addon is never really "exectuted" or "run" as such;. It's registered when enabled. Consider addons more like modules. Once it's enabled can use the operators, panels or set up things like keymaps and handlers.. To run some function from your addon on file load, add a persistent load (pre or post) handler and configure in your register method. Similar $\endgroup$ – batFINGER Jul 10 '18 at 15:17
1
$\begingroup$

In user preferences choose add-ons tab check the box of the plugin you want to use and hit save user settings in lower left corner. If the plugin is not enabled next time you open blender then either you are doing something wrong (like, the shortcut of the plugin activation is diffrent than you think or plugin is updated and changed it's interface so it doesn't appears in the same spot as shown in tutorials) or the plugin is glitched.

Try repeating these steps and downloading and using latest version of the plugin.

| improve this answer | |
$\endgroup$
  • $\begingroup$ I know that... I want to know for example how to create a "suzanne" directly after blender opens. $\endgroup$ – Tanguy Jul 10 '18 at 15:11
  • 1
    $\begingroup$ you can open Blender, create your Suzanne, then save this scene as your default preset with ctrl U > Save Startup File, when you'll reopen Blender you'll have a Suzanne by default, is it what you want? $\endgroup$ – moonboots Jul 10 '18 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.