BIS fnc exportEditorPreviews: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - "Category:Eden Editor" to "Eden Editor") |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.60 | |||
|1.60 | |||
|gr1= Diagnostic | |gr1= Diagnostic | ||
| Export | |descr= Export screenshots of objects for [[:Category:Eden Editor|Eden Editor]] and Community Wiki to {{hl|<Arma 3 Profile>\Screenshots\EditorPreviews}} directory. See [[:Category:Arma 3: Assets|Arma 3 assets]]. | ||
See [[:Category: | {{Feature|informative| | ||
The file is saved into ''Screenshots'' folder in the [[Profile]] directory. The folder is by default limited to 250 MB to prevent abuse.<br> | |||
The file is saved into ''Screenshots'' folder in the [[Profile]] directory. The folder is by default limited to 250 MB to prevent abuse. | |||
<br> | |||
To increase the limit, add the following line at the end of the profile file: | To increase the limit, add the following line at the end of the profile file: | ||
< | <syntaxhighlight lang="cpp">maxScreenShotFolderSizeMB = 2000; // size in MB</syntaxhighlight> | ||
}} | |||
| [duration, type, sides, mods, addons] spawn [[BIS_fnc_exportEditorPreviews]] | |s1= [duration, type, sides, mods, addons, classes] spawn [[BIS_fnc_exportEditorPreviews]] | ||
|p1= duration: [[Number]] - ( | |p1= duration: [[Number]] - (Optional, default 1) duration in seconds for which an objects remains on the screen before its screen is captured | ||
|p2= type: [[String]] - (Optional, default "all") can be one of: | |p2= type: [[String]] - (Optional, default "all") can be one of: | ||
Line 25: | Line 22: | ||
* "all" - all objects will be used | * "all" - all objects will be used | ||
|p3= sides: [[Array]] of [[Side | |p3= sides: [[Array]] of [[Side]]s - (Optional, default all sides) list of sides. Only objects of these sides will be used | ||
|p4= mods: [[Array]] of [[String]] - (Optional, default all mods) list of CfgMods classes. Only objects belonging to these mods will be used | |p4= mods: [[Array]] of [[String]] - (Optional, default all mods) list of CfgMods classes. Only objects belonging to these mods will be used | ||
Line 35: | Line 32: | ||
|exec= spawn | |exec= spawn | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>// All objects | ||
[] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x2= < | |x2= <sqf>// All characters and vehicles. Capturing delay will be 0.5 seconds | ||
[0.5, "vehicles"] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x3= < | |x3= <sqf>// BLUFOR characters and vehicles | ||
[nil, "vehicles", [west]] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x4= < | |x4= <sqf>// Props in Karts DLC | ||
[nil, "props", [], ["kart"]] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x5= < | |x5= <sqf>// All objects in specified addons | ||
[nil, "all", [], [], ["A3_Armor_F_Slammer", "A3_Air_F_Heli_Heli_Transport_03"]] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x6= < | |x6= <sqf>// BLUFOR characters and vehicles in Marksmen DLC | ||
[nil, "vehicles", [west], ["mark"]] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
|x7= < | |x7= <sqf>// Only the B_Soldier_F | ||
[nil, "all", [], [], [], ["B_Soldier_F"]] spawn BIS_fnc_exportEditorPreviews;</sqf> | |||
| [[screenshot]] | |seealso= [[screenshot]] [[Eden_Editor:_Configuring_Asset_Previews|Configuring Asset Previews]] | ||
}} | }} | ||
Latest revision as of 13:27, 9 July 2023
Description
- Description:
- Export screenshots of objects for Eden Editor and Community Wiki to <Arma 3 Profile>
\Screenshots \EditorPreviews directory. See Arma 3 assets. - Execution:
- spawn
- Groups:
- Diagnostic
Syntax
- Syntax:
- [duration, type, sides, mods, addons, classes] spawn BIS_fnc_exportEditorPreviews
- Parameters:
- duration: Number - (Optional, default 1) duration in seconds for which an objects remains on the screen before its screen is captured
- type: String - (Optional, default "all") can be one of:
- "vehicles" - only characters and vehicles will be used
- "props" - only props will be used
- "all" - all objects will be used
- sides: Array of Sides - (Optional, default all sides) list of sides. Only objects of these sides will be used
- mods: Array of String - (Optional, default all mods) list of CfgMods classes. Only objects belonging to these mods will be used
- addons: Array of String - (Optional, default all addons) list of CfgPatches classes. Only objects belonging to these addons will be used
- classes: Array of String - (Optional, default all classes) list of CfgVehicles classes. Only these objects will be used
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- // All characters and vehicles. Capturing delay will be 0.5 seconds [0.5, "vehicles"] spawn BIS_fnc_exportEditorPreviews;
- Example 3:
- Example 4:
- Example 5:
- Example 6:
- Example 7:
Additional Information
- See also:
- screenshot Configuring Asset Previews
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note