1
$\begingroup$

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.

$\endgroup$
1
$\begingroup$

pie.operator("VIEW3D_OT_viewnumpad").type='CAMERA' - this is right

$\endgroup$
  • 1
    $\begingroup$ Please add more detail to your answer, otherwise it might get deleted. $\endgroup$ – someonewithpc Dec 19 '15 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.