Render script
This commit is contained in:
parent
62c0e51a9b
commit
1bc07371da
|
|
@ -18,9 +18,6 @@ end)
|
||||||
|
|
||||||
game:GetService("HttpService").HttpEnabled = true
|
game:GetService("HttpService").HttpEnabled = true
|
||||||
game:GetService("ScriptContext").ScriptsDisabled = true
|
game:GetService("ScriptContext").ScriptsDisabled = true
|
||||||
|
|
||||||
print(baseUrl, thumbnailKey, renderType, assetId)
|
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"["
|
"["
|
||||||
.. game.JobId
|
.. game.JobId
|
||||||
|
|
@ -42,7 +39,7 @@ game:HttpPost(
|
||||||
|
|
||||||
local player = game:GetService("Players"):CreateLocalPlayer(0)
|
local player = game:GetService("Players"):CreateLocalPlayer(0)
|
||||||
player.CharacterAppearance = baseUrl
|
player.CharacterAppearance = baseUrl
|
||||||
.. "/api/render/characterasset?id="
|
.. "/Asset/CharacterFetch.ashx?userID="
|
||||||
.. assetId
|
.. assetId
|
||||||
player:LoadCharacter(false)
|
player:LoadCharacter(false)
|
||||||
|
|
||||||
|
|
@ -54,13 +51,9 @@ if gear then
|
||||||
end
|
end
|
||||||
|
|
||||||
local click = ThumbnailGenerator:Click("PNG", 1024, 1024, true)
|
local click = ThumbnailGenerator:Click("PNG", 1024, 1024, true)
|
||||||
local clickObject = ThumbnailGenerator:Click("OBJ", 420, 420, true)
|
|
||||||
|
|
||||||
local result = '{"Status": 2, "Click": "'
|
local result = '{"Status": 2, "Click": "' .. tostring(click) .. '"}'
|
||||||
.. tostring(click)
|
print result
|
||||||
.. '", "ClickObject": ['
|
|
||||||
.. tostring(clickObject)
|
|
||||||
.. "]}"
|
|
||||||
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
@ -69,7 +62,7 @@ while true do
|
||||||
baseUrl
|
baseUrl
|
||||||
.. "/api/render/update?apiKey="
|
.. "/api/render/update?apiKey="
|
||||||
.. thumbnailKey
|
.. thumbnailKey
|
||||||
.. "&RenderJobID="
|
.. "&taskID="
|
||||||
.. game.JobId,
|
.. game.JobId,
|
||||||
result,
|
result,
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,9 @@ if gear then
|
||||||
end
|
end
|
||||||
|
|
||||||
local click = ThumbnailGenerator:Click("PNG", 1024, 1024, true)
|
local click = ThumbnailGenerator:Click("PNG", 1024, 1024, true)
|
||||||
local clickObject = ThumbnailGenerator:Click("OBJ", 420, 420, true)
|
|
||||||
|
|
||||||
local result = '{"Status": 2, "Click": "'
|
local result = '{"Status": 2, "Click": "' .. tostring(click) .. '"}'
|
||||||
.. tostring(click)
|
print result
|
||||||
.. '", "ClickObject": ['
|
|
||||||
.. tostring(clickObject)
|
|
||||||
.. "]}"
|
|
||||||
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
print("[" .. game.JobId .. "] Successfully rendered, moving on...")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
@ -66,7 +62,7 @@ while true do
|
||||||
baseUrl
|
baseUrl
|
||||||
.. "/api/render/update?apiKey="
|
.. "/api/render/update?apiKey="
|
||||||
.. thumbnailKey
|
.. thumbnailKey
|
||||||
.. "&RenderJobID="
|
.. "&taskID="
|
||||||
.. game.JobId,
|
.. game.JobId,
|
||||||
result,
|
result,
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue