You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit the take-screenshot script for support on windows:
Change line 19 of take-screenshot to the following condition:
if [[ "$OSTYPE"=="win32" ]] || [[ "$OSTYPE"=="msys" ]];thenif node node_modules/@shopify/screenshot-glb/dist/cli.js -i "$file" -w 512 -h 512 -m "orientation=0 0 -2.4" -o "$png_file";thenecho"Screenshot of $vrm_filename saved as $(basename "$vrm_filename" .vrm).png"elseecho"Failed to take a screenshot of $vrm_filename"fielseif node ./node_modules/.bin/screenshot-glb -i "$file" -w 512 -h 512 -m "orientation=0 0 -2.4" -o "$png_file";thenecho"Screenshot of $vrm_filename saved as $(basename "$vrm_filename" .vrm).png"elseecho"Failed to take a screenshot of $vrm_filename"fifi
Also note that orientation takes in radians;
in the code above, -2.4 is to make a VRM0 face forward to the right; This might not be desired for a VRM1
The text was updated successfully, but these errors were encountered:
Edit the take-screenshot script for support on windows:
Change line 19 of take-screenshot to the following condition:
Also note that
orientation
takes in radians;in the code above,
-2.4
is to make a VRM0 face forward to the right; This might not be desired for a VRM1The text was updated successfully, but these errors were encountered: