The '''PhotoMetadata''' component is used to contain the information on a photo usually taken within Resonite. It is automatically attached to every screenshot taken using the finger photo gesture. This component can also be attached to a photo imported with the "import as screenshot" option when importing an image.
<!--T:2-->
<!--T:2-->
Line 12:
Line 12:
{{Table ComponentFields
{{Table ComponentFields
|LocationName|String|Name of the session the screenshot was taken in.
|LocationName|String|Name of the session the screenshot was taken in.
|LocationURL|Uri|
|LocationURL|Uri| The URI of the session's world that the photo was taken in. (basically a world link)
|User|User|Host of the session the screenshot was taken in.
|LocationHost|{{RootFieldType|UserRef}}|TypeAdv2=true|Host of the session the screenshot was taken in.
|_machineId|String|Machine ID of the host.
|LocationAccessLevel|'''[[Type:Nullable`1|Nullable`1]]<[[Type:SessionAccessLevel|SessionAccessLevel]]>'''|TypeAdv3=true|Access level of the session.
|_userId|String|User ID of the host.
|LocationHiddenFromListing|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Bool|Bool]]>'''|TypeAdv4=true|Whether the location was marked as hidden.
|LocationAccessLevel|Nullable`1|TypeString3=Nullable<SessionAccessLevel>|Access level of the session.
|LocationHiddenFromListing|Nullable`1|TypeString4=Bool?|Whether the location was marked as hidden.
|TimeTaken|DateTime|Exact timestamp that the screenshot was taken.
|TimeTaken|DateTime|Exact timestamp that the screenshot was taken.
|User|User|User who took the screenshot.
|TakenBy|{{RootFieldType|UserRef}}|TypeAdv6=true|User who took the screenshot.
|_machineId|String|Machine ID of the photographer.
|TakenGlobalPosition|Float3| The position in [[Coordinate spaces|global space]] the camera had when the photo was taken.
|_userId|String|User ID of the photographer.
|TakenGlobalRotation|FloatQ| The rotation in [[Coordinate spaces|global space]] the camera had when the photo was taken.
|TakenGlobalScale|Float3| The scale in [[Coordinate spaces|global space]] the camera had when the photo was taken.
|AppVersion|String|Resonite version number of the photographer.
|AppVersion|String|Resonite version number of the photographer.
|PresentUsers|SyncList`1|TypeString8=SyncList<UserRef>|List of users within the session.
|UserInfos|{{RootFieldType|SyncList`1|[[Component:AssetMetadata#UserInfo|AssetMetadata.UserInfo]]}}|TypeAdv11=true| See [[Type:UserInfo|UserInfo]]
|__legacyPresentUsers|{{RootFieldType|SyncList`1|[[Type:UserRef|UserRef]]}}|TypeAdv12=true| Internal. no longer used.
|CameraManufacturer|String|Manufacturer of the camera.
|CameraManufacturer|String|Manufacturer of the camera.
|CameraModel|String|Model of the camera.
|CameraModel|String|Model of the camera.
|CameraFOV|Float|FOV of the camera at picture time.
|CameraFOV|Float|FOV of the camera at picture time.
|Is360|Bool|Whether the image is a 360 degree image or not.
|Is360|Bool|Whether the image is a 360 degree image or not.
|StereoLayout|StereoLayout|
|StereoLayout|StereoLayout| The layout of the image's left and right sections if it is a stereoscopic image, also known as a 3D image.
|_exportedUsers|{{RootFieldType|SyncBag`1|[[Type:UserRef|UserRef]]}}|TypeAdv18=true| This is a list of users that exported the screenshot. If this component is part of a saved item, this is the list of users that exported the screenshot before the item was saved to the cloud.
}}
}}
<!--T:3-->
== Sync Delegates ==
== Usage ==
{{Table ComponentTriggers
|OnSavePhoto:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the save photo button is touched.
|OnExportPhoto:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the export photo button is touched.
The PhotoMetadata component is used to contain the information on a photo usually taken within Resonite. It is automatically attached to every screenshot taken using the finger photo gesture. This component can also be attached to a photo imported with the "import as screenshot" option when importing an image.
This is a list of users that exported the screenshot. If this component is part of a saved item, this is the list of users that exported the screenshot before the item was saved to the cloud.