Tutorial addon sample (Move X by One) doesn't get executed and/or added as available voice when installed. #87180
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#87180
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?
System Information
Operating system: Mac OS 10.15.7 (19H114) Catalina
Graphics card: ATI Radeon Vega
Blender Version
Broken: (example: 2.92, 02948a2cab44, master)
Worked: dunno
Running the script inside the Scripting editor doesn't do anything ().
I tried also to install as an addon (Preferences->Addons->Install) it adds the voice to add-ons and let to enable it but it won't add the option in the editor, so searching as reported in the tutorial doesn't work.
There is no syntax error reported (tried also running form terminal the app to check if there were some error reported).
Code copied from https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html:
Added subscriber: @Neogene
Added subscriber: @rjg
Running it from the text editor will only register it, you have to call the operator to move the object as explained in the tutorial:
The steps to run the add-on from the text editor are:
__name__
set to"__main__"
this will result inregister()
being called. The function registers the operator, but doesn't execute it.Alternatively you can also run the operator without enabling the Developer Extras by using the Python console. Typing
bpy.ops.object.move_x()
and pressing enter will execute the operator.Added subscriber: @Blendify
@Blendify Since operators that aren't in menus are omitted from the search by default, the tutorial should explain that the Developer Extras have to be enabled or showcase it by calling the operator from the console.
Yes I found to enable python in the tutorial and not also the developer extras. Thanks, after enabling it appeared and I managed to use and debug properly.
Closed as duplicate of #85625