Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. import bpy
  2.  
  3. def main(context):
  4. scene = context.scene
  5. world = scene.world
  6. if world is None:
  7. return
  8. space_data = None
  9. for area in context.screen.areas:
  10. if area.type == 'VIEW_3D':
  11. space_data = area.spaces.active
  12. if space_data is None:
  13. return
  14. #space_data.show_world = False #True # ワールドの背景
  15. #space_data.grid_subdivisions = 1 # グリッド細分化
  16. #world.horizon_color = (0,0,0) # ワールドの水平色
  17. theme = context.user_preferences.themes[0]
  18. # 背景色のテーマ: グラデーション使用
  19. theme.view_3d.space.gradients.show_grad = False
  20. # テーマのグリッド色をグラデーション上の色にする
  21. theme.view_3d.grid = theme.view_3d.space.gradients.high_gradient
  22.  
  23. context = bpy.context
  24. main(context)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement