Jump to content

Is there anybody who knows how to write batch file?


falconcool

Recommended Posts

Hi,I've created a new race database, including body,hands,legs,,,fully rigged models and textures.

It works all ok on C/K,,Now I'm working on adding facial expression through FaceGen modeller's tools.

Here is a preview

http://i.imgur.com/qhycj.jpg

 

Since I'm not coder ,and I have still lots of unfinished stuff on this project.

I'm looking for anyone who knows how to write a simple batch file to covert and inject my edited facial expression .obj models into .tri format.

Here is the command I want to do in CMD mode.

For example.I've created lots of facial expression files,,Their names are FaceA.obj ,FaceB.obj,FaceC.obj.......

I want to convert these files into .tri first.,,Assume I put all necessary files in folder C:\Morph\

In CMD mode,, C:\Morph\fileconvert.exe obj-tri FaceA FaceA ---->this command converts FaceA.obj into FaceA.tri ,then put FaceA.tri in the same folder of C:\Morph\

After converting all obj files,I created a new Face.tri in the same folder,,it's a clean head without any facial expression.

Then I want to create a .tri morph target called Myheadmorph.tri to store all other morph targets.

It's command list like.

C:\Morph\Addanimatemorph.exe diff Face.tri FaceA.tri Aah Myheadmorph.tri,,,

(Attention Aah is the morph name I want store in the Myheadmorph.tri,,I can name morph targets as the same name with those morph names, for example,,FaceA.tri as Face_Aah.tri, FaceB.tri as Face_BigAah.tri...etc..)

 

If anyone can help,it will save me massive of time.Thank you:)

 

As for the FaceGen tools,,go grab them here.In supprt>User manual section.

My link

Edited by falconcool
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...