Last active
August 6, 2024 12:02
-
-
Save Aeplexi/92036446d4bb4b502a4a2fca576e38fe to your computer and use it in GitHub Desktop.
Old Headshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
method: "POST", | |
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization", | |
contentType: "application/json", | |
data: JSON.stringify({ | |
"camera": { | |
// Ranges are inclusive. | |
"distanceScale": 1.15, // 0.5 to 4 | |
"fieldOfViewDeg": 28.797294821013363, // 15 to 45 | |
"xRotDeg": 0, // -20 to 20 | |
"yRotDeg": -13.0 // -60 to 60 | |
}, | |
"emoteAssetId": 0, // emote asset id | |
// idleAnimationAssetId used to exist here, it has since been removed. | |
"thumbnailType": 1 // 1 = Closeup (headshot), 2 = FullBody (bodyshot). Closeup and FullBody can have different configurations. | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment