View Single Post
  #3  
Old 05-07-2007, 08:44 AM
bjgold bjgold is offline
Member
 
Join Date: Jul 2006
Posts: 19
viz.startRecording()

I'm having problems using viz.startRecording. I'm getting an AttributeError: 'module' object has no attribute 'startRecording'. But all of my timers are set up through viz (so I can call viz.killTimer, for example), so I figured that the viz. object would be the correct one to call for startRecording (the Control-F12 works fine, but it would be better for this batch job to have it automated via script). Any ideas? I've attached the chunk of code from onTimer

Code:
	if( num == ANIMATE_INPUT_TIMER ):
		if( inpCurSample < inpTotalSampleCount ):
			if( inpCurSample == 1 ):
				viz.startRecording( str(AVI_FILES[aviFileNumber - 1]) )
			myArm.setArmPositionAccordingToDataSample( inpHandTotal[inpCurSample], inpArmTotal[inpCurSample], inpFingerTotal[inpCurSample] )
			inpCurSample += 1
		else:
			viz.stopRecording()
			viz.killtimer( ANIMATE_INPUT_TIMER )
			viz.starttimer( POLL_VIDEO, .1, viz.FOREVER )
			armVisibility( viz.OFF )
Reply With Quote