Post #4005: The command is correct but you have to use it inside the 3D view. Make a button
📋 Metadata
- Author: Motiomancer
- Date: 2021-08-14 17:48:03
- Type:
answer - Quality Score: 7/10
- Reply to: post_04001
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
The command is correct but you have to use it inside the 3D view. Make a button with that command and call it from the 3D view
“bpy.context.space_data” is asking for something in the area you are currently using so if you type that in the script console you’ll get an error because there is no camera in the console area.