Noble_Fish 发表于 2025-1-5 14:11
怎么看着像一开始是南北方向的塔造好后突然扭向东(↘)西方向导致的。但是你这个看本体也没有炮塔突然转向 ...
破案了,脚本少删了个负号,渲染阴影是旋转方向是反的。。。。。g了啊那之前做的应该都是错的。。。。。。。。
$.receiveshadows = off
select $target1
for i = 1 to 32 do
(
if i < 10 do
(
render RA2目标摄像机 frame:#current outputFile:("D:\RA2Scripts\Turret_Pro32"+"//"+"A"+"0"+(i as string)+".png") vfb:off
rotate $ (angleaxis 11.25 [0,0,1])
)
if (10<=i) and (i<=99) do
(
render RA2目标摄像机 frame:#current outputFile:("D:\RA2Scripts\Turret_Pro32"+"//"+"A"+(i as string)+".png") vfb:off
rotate $ (angleaxis 11.25 [0,0,1])
)
)
$.receiveshadows = on
clearSelection()
select $target1
for i = 1 to 32 do
(
if i < 10 do
(
render RA2目标摄像机 frame:#current outputFile:("D:\RA2Scripts\Turret_Pro32"+"//"+"SA"+"0"+(i as string)+".png") vfb:off
rotate $ (angleaxis -11.25 [0,0,1])
)
if (10<=i) and (i<=99) do
(
render RA2目标摄像机 frame:#current outputFile:("D:\RA2Scripts\Turret_Pro32"+"//"+"SA"+(i as string)+".png") vfb:off
rotate $ (angleaxis -11.25 [0,0,1])
)
)
messagebox"渲染完毕!"
|