Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

CG Python Academy (Free)

1k members • Free

1 contribution to CG Python Academy (Free)
The result of return
Hi, I have taken the course and I want to ask you about this line of code : my_cube = bpy.ops.mesh.primitive_cube_add(). After running this line, I saw that a Cube object is created in Outliner. And I thought I can access the location of the cube with my_cube.location , but it doesn't work. How can I see the result of the above line ,since it doesn't return an object ?
1 like • Jan 10
Thank you for the answers,now it works.And I found that run this bpy.ops.mesh.primitive_cube_add() returns only a info message : {'FINISHED'}
1-1 of 1
Razvan Diaconescu
1
2points to level up
@razvan-diaconescu-2653
Just a student...

Active 75d ago
Joined Nov 22, 2024
Powered by