Created
December 24, 2020 10:20
-
-
Save ZeroPivot/22b7c45fa29a6cf41d22fca252e20f52 to your computer and use it in GitHub Desktop.
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
def sprite_fetch_arr(args, sprite_name) | |
sprite_coordinates = [] | |
args.outputs.sprites.each_with_index do |sprite, index| | |
if (sprite.sprite_name == sprite_name) | |
sprite_coordinates = args.outputs.sprites[index].xywh_arr | |
args.outputs.labels << LabelUse.new(600, 600, "#{sprite_coordinates}", 2, 0, "fonts/AritySpeak.tif", 0, 0, 255, 255) | |
break | |
end | |
end | |
return sprite_coordinates | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment