Post #3557: Hi folks

πŸ“‹ Metadata

  • Author: Stefakapapy
  • Date: 2020-09-03 14:36:42
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_03558

🏷️ Tags

beginner pie-menu popup-dialog python-scripting

  • Pie Menu Editor
  • Popup Dialog Editor
  • Python Scripting

πŸ’¬ Content

Hi folks

Your addon is a must have, save me so muuuuuuuuuuuuuch time in my workflow.
I have a question. Is it possible to affect a pie (for example) to multiple types of objects. For example enabling the pie if object is MESH or CURVE ?
I tried
return C.active_object.type == 'MESH' or C.active_object.type == 'CURVE'
And also
return C.active_object.type in ['MESH','CURVE']

As you think i am a perfect noob in Python, so there are the results of my research on th net

Also is it possible to display a single text. For example make a popup like this :

β€œOrigin To : ” [Grid] [World Origin] [Selected] [Active]

1 Title text (not clickable) and 4 buttons ?

?

Thanks for any help
Cheers


πŸ”— View on Blender Artists