Post #954: Ja

📋 Metadata

  • Author: roaoao
  • Date: 2017-09-22 04:45:39
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00952

🏷️ Tags

popup-dialog scripting advanced solved

  • Popup Dialog Editor
  • Python Scripting
  • Modal Editor

💬 Content

Jakro:

Is it possible to get the properties window to open out to the modifier tab? I tried to enter in bpy.ops.pme.popup_area(area=‘PROPERTIES’); bpy.context.space_data.context = ‘MODIFIER’ but that didn’t work.

Will add some on_window_open command in the next version. Now you can use this code:

bpy.ops.pme.popup_area('INVOKE_DEFAULT',  area='PROPERTIES'); win = C.window_manager.windows[-1];  bpy.ops.pme.exec(dict(window=win, screen=win.screen,  area=win.screen.areas[0]), cmd="C.context.space_data.context =  'MODIFIER'")

Jakro:

Also I was wondering if it’s possible to be able to rotate the view while inside a modal, like how the default knife modal works?

Will try to implement this feature.


🔗 View on Blender Artists