{"name":"BIS_fnc_exportEditorPreviews","operator":null,"title":"BIS fnc exportEditorPreviews","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_exportEditorPreviews","revid":370758,"updated":"2025-02-06T22:25:56Z","groups":["Diagnostic"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.60"}],"since":{"game":"arma3","name":"Arma 3","version":"1.60"},"arma3_since":"1.60","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Export screenshots of objects for Eden Editor and Community Wiki to `<Arma 3 Profile>\\Screenshots\\EditorPreviews` directory. See Arma 3 assets.\n\n> [!NOTE]\n> The file is saved into *Screenshots* folder in the Profile directory. The folder is by default limited to 250 MB to prevent abuse.\n>\n> To increase the limit, add the following line at the end of the profile file:\n>\n> ```cpp\n> maxScreenShotFolderSizeMB = 2000; // size in MB\n> ```","syntaxes":[{"syntax":"[duration, type, sides, mods, addons, classes] spawn BIS_fnc_exportEditorPreviews","since":null,"effect":null,"exec":null,"params":[{"name":"duration","type":"Number","optional":true,"default":"1","description":"duration in seconds for which an objects remains on the screen before its screen is captured","types":["Number"],"since":null,"text":"duration: Number - (Optional, default 1) duration in seconds for which an objects remains on the screen before its screen is captured"},{"name":"type","type":"String","optional":true,"default":"\"all\"","description":"can be one of:\n- \"vehicles\" - only characters and vehicles will be used\n- \"props\" - only props will be used\n- \"all\" - all objects will be used","types":["String"],"since":null,"text":"type: String - (Optional, default \"all\") can be one of:\n- \"vehicles\" - only characters and vehicles will be used\n- \"props\" - only props will be used\n- \"all\" - all objects will be used"},{"name":"sides","type":"Array of Sides","optional":true,"default":"all sides","description":"list of sides. Only objects of these sides will be used","types":["Array","Side"],"since":null,"text":"sides: Array of Sides - (Optional, default all sides) list of sides. Only objects of these sides will be used"},{"name":"mods","type":"Array of String","optional":true,"default":"all mods","description":"list of CfgMods classes. External mods should be prefixed with \"@\". Only objects belonging to these mods will be used","types":["Array","String"],"since":null,"text":"mods: Array of String - (Optional, default all mods) list of CfgMods classes. External mods should be prefixed with \"@\". Only objects belonging to these mods will be used"},{"name":"addons","type":"Array of String","optional":true,"default":"all addons","description":"list of CfgPatches classes. Only objects belonging to these addons will be used","types":["Array","String"],"since":null,"text":"addons: Array of String - (Optional, default all addons) list of CfgPatches classes. Only objects belonging to these addons will be used"},{"name":"classes","type":"Array of String","optional":true,"default":"all classes","description":"list of CfgVehicles classes. Only these objects will be used","types":["Array","String"],"since":null,"text":"classes: Array of String - (Optional, default all classes) list of CfgVehicles classes. Only these objects will be used"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n// All objects\n[] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// All objects\n[] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// All characters and vehicles. Capturing delay will be 0.5 seconds\n[0.5, \"vehicles\"] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// All characters and vehicles. Capturing delay will be 0.5 seconds\n[0.5, \"vehicles\"] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// BLUFOR characters and vehicles\n[nil, \"vehicles\", [west]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// BLUFOR characters and vehicles\n[nil, \"vehicles\", [west]] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// Props in Karts DLC\n[nil, \"props\", [], [\"kart\"]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// Props in Karts DLC\n[nil, \"props\", [], [\"kart\"]] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// All objects in specified addons\n[nil, \"all\", [], [], [\"A3_Armor_F_Slammer\", \"A3_Air_F_Heli_Heli_Transport_03\"]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// All objects in specified addons\n[nil, \"all\", [], [], [\"A3_Armor_F_Slammer\", \"A3_Air_F_Heli_Heli_Transport_03\"]] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// BLUFOR characters and vehicles in Marksmen DLC\n[nil, \"vehicles\", [west], [\"mark\"]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// BLUFOR characters and vehicles in Marksmen DLC\n[nil, \"vehicles\", [west], [\"mark\"]] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// Only the B_Soldier_F\n[nil, \"all\", [], [], [], [\"B_Soldier_F\"]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// Only the B_Soldier_F\n[nil, \"all\", [], [], [], [\"B_Soldier_F\"]] spawn BIS_fnc_exportEditorPreviews;"]},{"text":"```sqf\n// Props in CBA\n[nil, \"props\", [], [\"@cba_a3\"]] spawn BIS_fnc_exportEditorPreviews;\n```","code":["// Props in CBA\n[nil, \"props\", [], [\"@cba_a3\"]] spawn BIS_fnc_exportEditorPreviews;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["screenshot","Eden Editor: Configuring Asset Previews"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.60"],"docblock":null,"filled_from_docblock":[]}