Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
pie.operator_enum("VIEW3D_OT_viewnumpad", "type") - this gives list of views.
I want only one "camera" button , not all from the enum (front, left, right etc.). How can I do it?
bpy.ops.view3d.viewnumpad(type='CAMERA') - this isn't right.
pie.operator("VIEW3D_OT_viewnumpad").type='CAMERA' - this is right
Required, but never shown