Python Console Editor, bpy.ops exercise doesnt work #47359
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#47359
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?
Im over here reading the Blender 2.76 manual
and the last exercise on this page doesnt work
https://www.blender.org/manual/editors/python_console.html
Changed status to: 'Open'
Added subscriber: @eroMoD
Added subscriber: @ideasman42
Quick test works OK here.
Please give details on what doesn't work.
I copy/paste:
mylayers = [False] * 20
then hit return
then I copy/paste:
mylayers- [x] = True
then I hit return
then I copy/paste:
add_cube = bpy.ops.mesh.primitive_cube_add
then hit return
then I copy/paste:
for index in range(0, 5):
... add_cube(location=(index * 3, 0, 0), layers=mylayers)
then hit return
and this shows up in red:
IndentationError: expected an indented block
This issue was referenced by 1311
Changed status from 'Open' to: 'Resolved'
This is showing what the python prompt will look like, you're not meant to type it in.
Yet its not really needed, and a bit confusing, removed rBM1311.