rose_kingdom の回答履歴
全1件中1~1件表示
- BlenderでPythonスクリプトを使用してCylinderの回転を行った際のCylinderの端点の座標
BlenderでPythonスクリプトを使用してCylinderの回転を行った際の座標が知りたいです 原点に描画したCylinderを x軸に対して45度,z軸に対して45度回転した際の 画像の赤点の座標を教えてください #####ソースコード from Blender import * #### Scene #### scene = Scene.New('myScene') scene.makeCurrent() #### Lights #### ldat = Lamp.New('Sun') l = scene.objects.new(ldat, 'myLamp') l.loc = (1, 0, 2) #### Camera #### camdat = Camera.New('persp') cam = scene.objects.new(camdat, 'myCamera') cam.loc = (0, 0, 3) #### Stuff #### mdat = Mesh.Primitives.Cylinder(32, 0.3, 1.0) m = scene.objects.new(mdat,'myMesh') m.rot = ( 3.141593 / 4.0 , 0.0 , 3.141593 / 4.0 ) Redraw()
- 締切済み
- その他(プログラミング・開発)
- kyarubi
- 回答数1