I want to output an MP4 from tvpaint via the command line.
When I execute the george script via the command line, the script works, but generates a mp4 of some Kb.
it is not usable.
When I execute a part of this script via the custom panel (inside tvpaint) it works and I have a working MP4.
Here is m'y subprocess command line call with Python:
Code: Select all
subprocess_publish_tvpp = (
f'{tvpaint_exec}'
f' "cmd=tv_loadproject {data.file.filepath}"'
f' "cmd=tv_WriteUserString VfxConfig ScenePath {data.file.filepath}"'
f' "cmd=tv_WriteUserString VfxConfig PlayblastPath {vfx_playblast_fullpath}"'
f' "cmd=tv_WriteUserString VfxConfig StartFrame {data.task.frame_in}"'
f' "cmd=tv_WriteUserString VfxConfig EndFrame {data.task.frame_out}"'
f' "script={tvpaint_grg_script}"'
f' "cmd=tv_Quit"'
)
call(subprocess_publish_tvpp)
Code: Select all
tv_ReadUserString "VfxConfig" "PlayblastPath" ""
playblastPath = '"'result'"'
tv_ReadUserString "VfxConfig" "ScenePath" ""
ScenePath = '"'result'"'
tv_ReadUserString "VfxConfig" "StartFrame" ""
startFrame = result
tv_ReadUserString "VfxConfig" "EndFrame" ""
endFrame = result
tv_LockDisplay "Export Mov..."
tv_SaveMode
tv_SaveMode "Mode=1016"
tv_SaveMode
tv_ProjectSaveSequence playblastPath startFrame endFrame
tv_UnLockDisplay
here is george script inside tvpaint (WORKING)
Code: Select all
//globals
startFrame = 1000
endFrame = 1043
playblastPath = "A:\projects\episodes\proj_101\s0080\p0310\vfx\playblast\p0310.mp4"
exportMov()
FUNCTION exportMov()
tv_LockDisplay "Export..."
tv_SaveMode
tv_SaveMode "Mode=1016"
tv_SaveMode
tv_ProjectSaveSequence playblastPath frameIn frameOut
tv_UnLockDisplay
END