32 lines
776 B
Batchfile
Executable File
32 lines
776 B
Batchfile
Executable File
@ECHO OFF
|
|
REM
|
|
REM makeadditivefrombaseanim.bat
|
|
REM
|
|
REM
|
|
REM Let animcombine.exe and redirecting stdout play nicely with Windows file associations.
|
|
REM
|
|
|
|
set argcount=0
|
|
for %%x in (%*) do Set /A argcount+=1
|
|
|
|
IF %argcount%==3 GOTO success
|
|
goto failure
|
|
|
|
:success
|
|
%RS_TOOLSROOT%\bin\anim\animcombine.exe -anims "%1","%2" -subtract -time 0 -out "%3" -output -nocompression
|
|
|
|
echo Created %3
|
|
|
|
copy "%~dpn1.clip" "%~dpn3.clip"
|
|
%RS_TOOLSROOT%\bin\anim\clipedit.exe -path "%~dp3\" -clip "%~dpn3.clip" -out "%~dpn3.clip" -clipanimation ,,,"$/%~n3%~x3"
|
|
|
|
echo Created %~dpn3.clip
|
|
|
|
goto end
|
|
|
|
:failure
|
|
echo Usage: makeadditive.bat drive:\path\non_additive_animation.anim drive:\path\zero_pose_animation.anim drive:\path\additive_animation.anim
|
|
|
|
:end
|
|
|
|
REM Endco |