Exemple #1
0
def InitRecording():
	# Condition is ALWAYS 1 here.
	pptExtension.STATE = 0
	pptExtension.ARMS_LIMIT_STATE = 0
	pptExtension.LEGS_LIMIT_STATE = 0

#BL:start
	global name
	name = '1'#vizinput.input('Participant Name: ')

	global gender
	genderChoices = ['female', 'male']
	gender = 0#vizinput.choose('Gender: ', genderChoices)
	
	global appendage
	wcChoices = ['Third Arm', 'Cylinder', 'Floating hand', 'Floating ball']
	appendage = 0#vizinput.choose('Which appendage would you like to use?', wcChoices)
	
	global controlSchema
	controlSchemaChoices = ['Wrist rotation', 'Asymmetric']
	controlSchema = 1#vizinput.choose('Choose the control schema?', controlSchemaChoices)
	
	global skin, skinChoices
	skinChoices = ['1','2','3','4','5','6','7','8','9','10']
	skin = 0#viz.choose('Skin Color? (1 = lightest, 10 = darkest)',skinChoices)
#BL:end
	
	global file
	file = hf_playback.openAvatarRecording(genderChoices[gender], name, 'w')
Exemple #2
0
def InitRecording():
	# Condition is ALWAYS 1 here.
	pptextension.STATE = 0
	pptextension.ARMS_LIMIT_STATE = 0
	pptextension.LEGS_LIMIT_STATE = 0

#BL:start
	some_global_variables.testRun = vizinput.ask('Is this a test run?')

	global participantID, controlSchema, controlSchemaChoices, numberOfArms

	controlSchemaChoices = ['BimanualControl', 'UnimanualControl', 'HeadControl']#['Wrist rotation', 'Asymmetric']
	participantID = 'No_ID'
	controlSchema = 0
	
	if not some_global_variables.testRun:
		participantID = vizinput.input('Participant ID: ')
#		controlSchema = vizinput.choose('Choose the control schema', controlSchemaChoices)
	
	numberOfArms = vizinput.choose('Number of arms', ['3','4','5'])
	numberOfArms += 3
	print "numberOfArms = " + str(numberOfArms)
	some_global_variables.isLeftHanded = vizinput.ask('Is the user left-handed?')
	global gender
	genderChoices = ['female', 'male']
	gender = 0#vizinput.choose('Gender: ', genderChoices)
	
	global appendage
	wcChoices = ['Third Arm', 'Cylinder', 'Floating hand', 'Floating ball']
	appendage = 0#vizinput.choose('Which appendage would you like to use?', wcChoices)
	
	global skin, skinChoices
	skinChoices = ['1','2','3','4','5','6','7','8','9','10']
	skin = 0#viz.choose('Skin Color? (1 = lightest, 10 = darkest)',skinChoices)
#BL:end
	
#	global filePointerForAvatarRecording, filePointerForRuntimeScoringRecording
	if not some_global_variables.testRun:
		touchcube.openRuntimeScoringTimesRecordingFile(participantID, controlSchemaChoices[controlSchema])
		hf_playback.openAvatarRecording(participantID, controlSchemaChoices[controlSchema])
Exemple #3
0
def InitRecording():
    # Condition is ALWAYS 1 here.
    pptExtension.STATE = 0
    pptExtension.ARMS_LIMIT_STATE = 0
    pptExtension.LEGS_LIMIT_STATE = 0

    # BL:start
    global testRun
    testRun = vizinput.ask("Is this a test run?")

    global participantID, controlSchema, controlSchemaChoices, isLeftHanded

    controlSchemaChoices = ["BimanualControl", "UnimanualControl", "HeadControl"]  # ['Wrist rotation', 'Asymmetric']
    participantID = "No_ID"
    controlSchema = 2

    if not testRun:
        participantID = vizinput.input("Participant ID: ")
        controlSchema = vizinput.choose("Choose the control schema", controlSchemaChoices)

    isLeftHanded = 0  # vizinput.ask('Is the user left-handed?')
    global gender
    genderChoices = ["female", "male"]
    gender = 0  # vizinput.choose('Gender: ', genderChoices)

    global appendage
    wcChoices = ["Third Arm", "Cylinder", "Floating hand", "Floating ball"]
    appendage = 0  # vizinput.choose('Which appendage would you like to use?', wcChoices)

    global skin, skinChoices
    skinChoices = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
    skin = 0  # viz.choose('Skin Color? (1 = lightest, 10 = darkest)',skinChoices)
    # BL:end

    # 	global filePointerForAvatarRecording, filePointerForRuntimeScoringRecording
    # 	touchcube.openRuntimeScoringTimesRecordingFile(participantID, controlSchemaChoices[controlSchema])
    hf_playback.openAvatarRecording(participantID, controlSchemaChoices[controlSchema])
Exemple #4
0
def InitRecording():
	# Condition is ALWAYS 1 here.
	pptExtension.STATE = 0
	pptExtension.ARMS_LIMIT_STATE = 0
	pptExtension.LEGS_LIMIT_STATE = 0

	global name
	name = vizinput.input('Participant Name: ')

	global gender
	genderChoices = ['female', 'male']
	gender = vizinput.choose('Gender: ', genderChoices)
	
	global condition
	wcChoices = ['Third Arm', 'Cylinder', 'Floating hand', 'Floating ball']
	condition = vizinput.choose('Which condition would you like to use?', wcChoices)
	
	global skin, skinChoices
	skinChoices = ['1','2','3','4','5','6','7','8','9','10']
	skin = viz.choose('Skin Color? (1 = lightest, 10 = darkest)',skinChoices)
	
	global file
	file = hf_playback.openAvatarRecording(genderChoices[gender], name, 'w')