@Misaki
I’m using the Spine CLI to implement an automatic export-to-MOV feature. The input Spine files vary greatly, and I don’t have detailed knowledge of their specific characteristics. So I need a general configuration that can automatically ensure the exported video dimensions are even numbers.
As you mentioned in your last point, different Spine files may require different crop settings, which isn’t feasible in this case. As for the margin you mentioned, it’s not relevant here—I’m only concerned with ensuring the output dimensions are even.
Here is the JSON configuration template I’m using, in case it helps.
{
"class": "export-mov",
"exportType": "animation",
"skeletonType": "single",
"skeleton": "{{ .Skeleton }}",
"animationType": "single",
"animation": "{{ .Animation }}",
"skinType": "current",
"skinNone": false,
"skin": null,
"maxBounds": false,
"renderImages": true,
"renderBones": false,
"renderOthers": false,
"scale": 0,
"fitWidth": 1920,
"fitHeight": 1920,
"enlarge": false,
"background": null,
"fps": 30,
"lastFrame": false,
"cropWidth": 0,
"cropHeight": 0,
"rangeStart": -1,
"rangeEnd": -1,
"outputType": "filePerAnimation",
"animationRepeat": 1,
"animationPause": 0,
"encoding": "PNG",
"quality": 0,
"compression": 6,
"audioEncoding": "None",
"qualityType": "qScore",
"pad": false,
"msaa": 0,
"smoothing": 8,
"renderSelection": false,
"cropX": 0,
"cropY": 0,
"warmUp": 0,
"layerType": "frame",
"output": "{{ .Output }}",
"id": -1,
"input": "{{ .Input }}",
"open": false
}