Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- def main(context):
- scene = context.scene
- world = scene.world
- if world is None:
- return
- space_data = None
- for area in context.screen.areas:
- if area.type == 'VIEW_3D':
- space_data = area.spaces.active
- if space_data is None:
- return
- #space_data.show_world = False #True # ワールドの背景
- #space_data.grid_subdivisions = 1 # グリッド細分化
- #world.horizon_color = (0,0,0) # ワールドの水平色
- theme = context.user_preferences.themes[0]
- # 背景色のテーマ: グラデーション使用
- theme.view_3d.space.gradients.show_grad = False
- # テーマのグリッド色をグラデーション上の色にする
- theme.view_3d.grid = theme.view_3d.space.gradients.high_gradient
- context = bpy.context
- main(context)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement