ok here is my basic rundown an am builder so if you do a quick bg, and add a snap, i edidit way down, because it is virtually, adding everything not being used also to the script, but here is am builder, local props = {"Standard (4x3)":{
"background":{"x":0,"y":0,
"file_name":"pixel.png""width":1920,"height":1080,}
"AMArtwork2":{
"file_name":"snap","x":240,"y":160,"width":100,"height":100,
}
}}
// Find correct aspect
function findAspect( ratio ) {
if ( ratio == 1.77778 ) return "HD (16x9)"
else if ( ratio == 1.6 ) return "Wide (16x10)"
else if ( ratio == 1.33333 ) return "Standard (4x3)"
else if ( ratio == 1.25 ) return "SXGA (5x4)"
else if ( ratio == 0.625 ) return "Wide Vert (10x16)"
else if ( ratio == 0.5625 ) return "HD Vert (9x16)"
else if ( ratio == 0.75 ) return "Standard Vert (3x4)"
//use default aspect
print("Unrecognized or missing aspect, using default: Standard (4x3)")
return "Standard (4x3)"
}
local aspects = ["Standard (4x3)","Standard Vert (3x4)","SXGA (5x4)","Wide (16x10)","Wide Vert (10x16)","HD (16x9)","HD Vert (9x16)"]
local aspect = findAspect( ScreenWidth / ( ScreenHeight * 1.0 ) )
// Create AM Objects
local background = fe.add_image( "resources/" + props[aspect]["background"].file_name, 1, 1, 1, 1)
foreach( key, val in props[aspect]["background"] )
if ( key != "file_name" )
try { background[key] = val } catch(e){}
local AMArtwork2 = fe.add_artwork( props[aspect]["AMArtwork2"].file_name, -1, -1, 1, 1)
foreach( key, val in props[aspect]["AMArtwork2"] )
if ( key != "file_name" )
try { AMArtwork2[key] = val } catch(e) { }
now here is the same thing, in am fe.layout.width=1920;
fe.layout.height=1080;
local bg = fe.add_image( "white.png", 0, 0, 1920, 2080 );
local snap = fe.add_artwork( "snap", 200, 200, 100, 100 );
the onley diff is his is picking your screen size to adjust all the objects,