info panel incorrect. bpy.context.object has no .key #41455

Closed
opened 2014-08-15 22:11:34 +02:00 by Shane Neph · 7 comments

Fedora 20
GTX 650

Blender 2.71 official download
Hash: 9337574

Select default cube
Open Logic Editor
Select Keyboard sensor
Select Key
Press A

Info panel shows
bpy.context.object.key = 'A'

while
dir(bpy.context.object) shows no data member named key

Fedora 20 GTX 650 Blender 2.71 official download Hash: 9337574 Select default cube Open Logic Editor Select Keyboard sensor Select Key Press A Info panel shows bpy.context.object.key = 'A' while dir(bpy.context.object) shows no data member named key
Author

Changed status to: 'Open'

Changed status to: 'Open'
Shane Neph self-assigned this 2014-08-15 22:11:34 +02:00
Author

Added subscriber: @sjn

Added subscriber: @sjn
Author

Perhaps it should be something like:
import bge
cont = bge.logic.getCurrentController()
val = bge.events.EventToString(cont.sensors[cont.owner.name].key)

where Info panel shows the value of val on rhs of equal sign.

Shane

Perhaps it should be something like: import bge cont = bge.logic.getCurrentController() val = bge.events.EventToString(cont.sensors[cont.owner.name].key) where Info panel shows the value of val on rhs of equal sign. Shane
Shane Neph was unassigned by Bastien Montagne 2014-08-16 08:46:57 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Looks more like a BGE-related issue, probably some internal code not generating right path?

Looks more like a BGE-related issue, probably some internal code not generating right path?
Author

I believe this is the same type of non-bug I incorrectly reported for #41469 . There I was concerned about the 3-D view rather than the Logic Editor here, and mont29 pointed out, "Space data depends on active space in current context - the one of a py console is the py console space, not the 3DView one… No bug here."

I will issue an enhancement request related to these non-bugs though. It makes sense, given that context auto switches to the python console when you're trying to replicate code that actually belongs to a different panel type (such as the Logic Editor in this non-bug report) that there is some helpful dropdown menu. For example, it would be cool if I could select Logic Editor from the drop down in the py console panel that allowed me to write code shown in the info panel that actually worked with the logic panel (in context-specific cases).

A somewhat related request would be to allow copy/paste from info panel into the python console. These panels are enormously useful to folks new to blender and/or python. Any plans to make the console work with the bge?

I believe this is the same type of non-bug I incorrectly reported for #41469 . There I was concerned about the 3-D view rather than the Logic Editor here, and mont29 pointed out, "Space data depends on active space in current context - the one of a py console is the py console space, not the 3DView one… No bug here." I will issue an enhancement request related to these non-bugs though. It makes sense, given that context auto switches to the python console when you're trying to replicate code that actually belongs to a different panel type (such as the Logic Editor in this non-bug report) that there is some helpful dropdown menu. For example, it would be cool if I could select Logic Editor from the drop down in the py console panel that allowed me to write code shown in the info panel that actually worked with the logic panel (in context-specific cases). A somewhat related request would be to allow copy/paste from info panel into the python console. These panels are enormously useful to folks new to blender and/or python. Any plans to make the console work with the bge?
Author

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Shane Neph self-assigned this 2014-08-18 23:02:32 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
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
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info 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
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#41455
No description provided.