Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting using python console #65

Closed
MahmoudAshraf-CIS opened this issue Feb 12, 2019 · 2 comments
Closed

Exporting using python console #65

MahmoudAshraf-CIS opened this issue Feb 12, 2019 · 2 comments

Comments

@MahmoudAshraf-CIS
Copy link

MahmoudAshraf-CIS commented Feb 12, 2019

am trying to export the default cube as a paper model but I got the following error
AttributeError: 'ExportPaperModel' object has no attribute 'object'
and here is a screenshot of blender
image

steps :- first openup blender and go to the python console then ran the following lines in order

import bpy
bpy.data.objects['Cube'].select = True # Select the default Blender Cube
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.editmode_toggle()
bpy.ops.export_mesh.paper_model(filepath='D:\\')

windows 10 - 64bit - blender version 2.79

sorry if it's a naive problem but am new at both blender and python, so any pointers would be great
thanks in advance

@addam
Copy link
Owner

addam commented Feb 12, 2019

You are right, the script cannot be used from console. I have it on my task list for blender 2.80.

@addam
Copy link
Owner

addam commented Jun 8, 2019

Fixed in branch blender28

@addam addam closed this as completed Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants