Addon Tutorial Page not updated for 2.8 #73134
Labels
No Label
Meta
Good First Issue
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Eevee & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds, Tests & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#73134
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html
Under "Install the Add-on" it fails to mention how to run the addon code.
Under "Write the Add-on" it makes jazz hands in the direction of the space bar, which i'm told is a 2.79 shortcut.
Added subscriber: @Mithaldu
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
Could you be more specific?
I read the topic
"Install the Add-on"
and found no outdated information in it.Added subscriber: @dr.sybren
Changed status from 'Needs User Info' to: 'Resolved'
The add-on code is run when you enable the add-on. This is indeed not written explicitly, but it has little to do with being updated for Blender 2.8x or not. I have added a sentence to the tutorial to clarify this.
In 2.79 {key Space} was the default shortcut for 'Play', but in Blender 2.8x {key Space} is used to search for operators. The text is thus correct for Blender 2.8x.
@dr.sybren
The add-on code is not run when you enable it, it is run when you trigger it via the command search. Only the registration is triggered via enabling it. Not Class.execute()
The keyboard shortcuts are in fact the opposite way around. After resetting Blender to factory defaults, this is what i see in the Blender27x and Blender presets:
Added subscriber: @EAW
@dr.sybren
In 2.79 {key Alt-A} was the default shortcut for play, but in Blender 2.8x it is {key Space}. The default shortcut to search for operators is {key F3} in 2.8x.
It all depends on what you mean with "the add-on code". The Python code in the add-on file is executed upon enabling the add-on. If you define an operator, the operator doesn't run until you execute it, but the add-on code has been run by that time already (or the add-on's operator wouldn't even exist in memory). There is a distinct difference between "the add-on code" and "the operator in the add-on code". How to run the operator is actually described in the preceeding Write the Add-on (Simple) section, but I guess it doesn't hurt to mention that this is still the same after installing the add-on from a separate Python file.
You're right, I mixed them up.