Post #1302: Way2Close, thanks ever so, I will study your line and try to understand.

📋 Metadata

  • Author: MickHanks
  • Date: 2018-04-01 12:38:20
  • Type: discussion
  • Quality Score: 5/10
  • Reply to: post_01285

🏷️ Tags

beginner python-scripting pie-menu

  • Python Scripting
  • Pie Menu Editor

💬 Content

Way2Close, thanks ever so, I will study your line and try to understand.

bpy.ops.screen.area_move(x=1326, y=483, delta=-31)

I did learn this. “Delta” is the amount you move the header with the mouse. I think
X and Y are the position of the mouse when you first grab the header.

Still learning about Highlighting a line of python in the info window and Ctrl+C gets more code then is displayed in the info window. The first line of this block was all that’s displayed in the info but the other 7 appeared when I pasted the line.

bpy.ops.screen.area_move(x=1326, y=483, delta=-31)
bpy.ops.screen.area_split(direction=‘HORIZONTAL’, factor=0.708916)
bpy.ops.screen.area_move(x=857, y=484, delta=140)
bpy.ops.screen.area_move(x=1454, y=388, delta=325)
bpy.ops.screen.area_move(x=678, y=693, delta=9)
bpy.ops.screen.region_scale()
bpy.ops.screen.area_move(x=564, y=700, delta=30)
bpy.ops.screen.area_move(x=774, y=603, delta=-148)

My take is this is all the From - Too of the mouse movement. Were “draw_menu(“ObjectDownRight”, frame=True, dx=9, dy=-15)” by passes the mouse and scales the screen/pain directly.

thanks again.


🔗 View on Blender Artists