WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC