Re: Follow Path Python constraint
9件表示
すべてのコメント一覧へ
投稿ツリー
-
Follow Path Python constraint (tsurubaso, 2007/12/29 9:02)
-
Re: Follow Path Python constraint (yamyam, 2007/12/29 12:39)
-
Re: Follow Path Python constraint (tsurubaso, 2007/12/29 13:28)
-
Re: Follow Path Python constraint (yamyam, 2007/12/29 13:54)
-
Re: Follow Path Python constraint (tsurubaso, 2007/12/30 0:06)
-
Re: Follow Path Python constraint (yamyam, 2007/12/30 1:57)
-
Re: Follow Path Python constraint (tsurubaso, 2008/1/1 2:42)
-
Re: Follow Path Python constraint (tsurubaso, 2008/1/3 1:21)
«
- Re: Follow Path Python constraint (yamyam, 2008/1/3 12:17)
-
Re: Follow Path Python constraint (tsurubaso, 2008/1/3 1:21)
«
-
Re: Follow Path Python constraint (tsurubaso, 2008/1/1 2:42)
-
Re: Follow Path Python constraint (yamyam, 2007/12/30 1:57)
-
Re: Follow Path Python constraint (tsurubaso, 2007/12/30 0:06)
-
Re: Follow Path Python constraint (yamyam, 2007/12/29 13:54)
-
Re: Follow Path Python constraint (tsurubaso, 2007/12/29 13:28)
-
Re: Follow Path Python constraint (yamyam, 2007/12/29 12:39)
tsurubaso
投稿数: 17
ok Dragibus
help me on this
here is his code
help me on this
here is his code
import Blender
from Blender import *
def cercleBezier(rayon):
h = 0.552 * rayon
p = 1.0 * rayon
p1 = [-p,-h,0.0,-p,0.0,0.0,-p,h,0.0]
p2 = [-h,p,0.0,0.0,p,0.0,h,p,0.0]
p3 = [p,h,0.0,p,0.0,0.0,p,-h,0.0]
p4 = [h,-p,0.0,0.0,-p,0.0,-h,-p,0.0]
cur = Curve.New('CercleBezier')
cur.appendNurb(BezTriple.New(p1))
cur[0].append(BezTriple.New(p2))
cur[0].append(BezTriple.New(p3))
cur[0].append(BezTriple.New(p4))
cur[0].setFlagU(1)
cur.setFlag(25)
cur.setPathLen(250)
return cur
scn = Scene.GetCurrent()
ob = scn.objects.active
cercle = scn.objects.new(cercleBezier(5.0))
cercle.setLocation(ob.loc)
cam = scn.objects.camera
cercle.makeParent([cam], 1)
cc = cam.constraints
cs = Constraint.Settings
cc.append(Constraint.Type.TRACKTO)
cc[0][cs.TARGET] = ob
cc[0][cs.TRACK] = 5
cc[0][cs.UP] = 1
Blender.Redraw()
#scn.play()
投票数:4
平均点:2.50
ログイン
クイックリンク
2021/07/01版
●Blender.org
BlenderFoundation
- Blenderのダウンロード
- 公式チュート等
- 公式マニュアル(和訳)
●ニュース(英文)
BlenderNation
●Blenderコミュニティ
blenderartists.org
●Blender Q&A
- Blender Stack Exchange
●テストビルド
Buildbot(自動生成)
●開発関連
公式開発サイト
Blender開発blog
Blender Wiki
●Blender.org
BlenderFoundation
- Blenderのダウンロード
- 公式チュート等
- 公式マニュアル(和訳)
●ニュース(英文)
BlenderNation
●Blenderコミュニティ
blenderartists.org
●Blender Q&A
- Blender Stack Exchange
●テストビルド
Buildbot(自動生成)
●開発関連
公式開発サイト
Blender開発blog
Blender Wiki