How to rotate scene via python script?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I'm super new to Blender and working on a script for Blender. My question is how to rotate scene via python script, just like using middle mouse?
Thank you.
python scene
add a comment |Â
up vote
1
down vote
favorite
I'm super new to Blender and working on a script for Blender. My question is how to rotate scene via python script, just like using middle mouse?
Thank you.
python scene
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm super new to Blender and working on a script for Blender. My question is how to rotate scene via python script, just like using middle mouse?
Thank you.
python scene
I'm super new to Blender and working on a script for Blender. My question is how to rotate scene via python script, just like using middle mouse?
Thank you.
python scene
python scene
asked Aug 19 at 12:50
DucViet321
363
363
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11
add a comment |Â
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
Thanks to batFINGER I've found the answer
import bpy
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Thanks to batFINGER I've found the answer
import bpy
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))
add a comment |Â
up vote
3
down vote
Thanks to batFINGER I've found the answer
import bpy
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Thanks to batFINGER I've found the answer
import bpy
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))
Thanks to batFINGER I've found the answer
import bpy
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))
answered Aug 19 at 15:57
DucViet321
363
363
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f116395%2fhow-to-rotate-scene-via-python-script%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Would look at MMB more akin to orbiting our focus point in the scene. (see view matrix). Think of the scene as the basis of global coordinates.
â batFINGER
Aug 19 at 13:11