up Inquisit Language Reference

lastPhotoCapturePath property

The full path to file created by the last photo capture done for this element.

Member of

<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>

Syntax

event.name.lastPhotoCapturePath

Read Only

Type

string

Remarks

The full local path created by the last photo capture suitable for use as an item in a <picture> element.

This property is useful in presenting recorded photocaptures back to participants during the same script session.

Examples

The following displays the last captured photo in a picture stimulus:

<picture lastpic>
/ items= ( script.lastphotoCapturePath )
</text>

The following code shows a) how to store the full path for a photocapture into 'item.currentSelfie' and b) how to use the stored photocapture (here: 'selfie') to present it back to the participant during runtime.

<item currentSelfie>
</item>

<picture selfie>
/ items = item.currentSelfie
</picture>

<trial selfieTaking>
/ onTrialBegin = {
  item.currentSelfie.clearItems();
}
/ stimulusFrames = [1 = instruct]
/ validResponse = (" ")
/ photoCapture = true
/ onTrialEnd = {  
  item.currentSelfie.appendItem(this.lastPhotoCapturePath);
}
/ branch = {
  return trial.presentSelfie;
}
</trial>

<trial presentSelfie>
/ stimulusFrames = [1 = selfie] //presents the recently taken photocapture
/ validResponse = (" ")
</trial>

Copyright Millisecond Software, LLC. All rights reserved.