- 【3D彫刻】ZBrush質問・雑談スレ25【3Dペイント】
498 :名無しさん@お腹いっぱい。[sage]:2014/09/15(月) 11:18:14.16 ID:zX/hd9TB - //***Save this file to your ZBrush /ZStartup/Macros/Misc folder and press Macro>Reload All Macros
//ZBrush macro by marcus_civis November 2013 [IButton,???,"Export OBJ sequence for TimeLine", [IShowActions,0] [If,[IsEnabled,Tool:Export], //ask for a file name [VarSet,fileName,[FileNameAsk,"OBJ(*.obj)|*.obj||","mesh.obj","Save file..."]] //add four zeros [VarSet,fileName,[StrMerge,[FileNameExtract,fileName,3],"0000.obj"]] //get the TimeLine duration [VarSet,dur,[IGet,Movie:TimeLine:Duration]] //get the frame rate [VarSet,frameRate,[IGet,Movie:Modifiers:Recording FPS]] //calculate the number of frames [VarSet,frames,dur*frameRate]
| - 【3D彫刻】ZBrush質問・雑談スレ25【3Dペイント】
499 :名無しさん@お腹いっぱい。[sage]:2014/09/15(月) 11:20:47.33 ID:zX/hd9TB - [VarSet,frames,dur*frameRate]
//set frame No to zero [VarSet,frameNo,0] //loop through all frames [Loop,#frames, //calculate the time [VarSet,tm,(1/frames)*frameNo] //go to the time on the TimeLine [TLGotoTime,tm] //esport the OBJ [FileNameSetNext,fileName] [IPress,Tool:Export] //advance the file name [VarSet,fileName,[FileNameAdvance,#fileName,4]] //increment frame No [VarInc,frameNo] ]//end loop ]//end if ,,1]//end of macro これ、objファイルを連番で出してくれるスクリプトなんですが、 タイムラインの最初〜最終キーフレームだけ出力して停止してくれるようにするには どこを修正したらいいでしょう? このままだとライムラインのすべてを 連番で出し続けてしまうため、すごい量のobjが・・・
| - 【3D彫刻】ZBrush質問・雑談スレ25【3Dペイント】
519 :498[sage]:2014/09/15(月) 20:28:59.36 ID:zX/hd9TB - >>501
ずっと昔のことなんですが 外人に超いい加減な英語(obj〜squence〜とかなんとか)で問いかけたら そのスクリプトをくれました。 細かい調整くらいは自分でしようかと思ったんですが Command Reference読んでも ちんぷんかんぷんで手が出ませんでした・・・。
| - 【3D彫刻】ZBrush質問・雑談スレ25【3Dペイント】
524 :498[sage]:2014/09/15(月) 21:26:35.14 ID:zX/hd9TB - 例えば、タイムラインの0秒のところから1秒のところまで
キーを打って簡単なレイヤーアニメーションを記録しているんですが、 出力するとその1秒の範囲を越えてタイムラインの最大幅(30秒?)まで 出力しようとするようです。 あんまり膨大なファイルになるので、 いつも強制終了させています。
|
|