|  | 
| 
 | |||||||
|  | 
|  | Thread Tools | Rate Thread | Display Modes | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
| 
				
				TypeError: y must be a float (transferring from vizard 3.0 to vizard 5.0)
			 
			
			The coding runs smoothly in vizard3.0. But when I copy them to vizard 5.0. It shows the error below. How can I fix it? Traceback (most recent call last): val = event.call() File "C:\Program Files (x86)\WorldViz\Vizard5\python return func(*args,**kwargs) File "C:\Documents and Settings current_vertex=mycurves1.addVertex([curvex, curvey1,0],viz.ABS_GLOBAL) File "C:\Program Files (x86)\WorldViz\ val = _ipcSend(_VIZ_OTFADDVERTEX,self.id,0,'',x[0],x[1],x[2],0.0) TypeError: y must be a float | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
| 
			
			viz.startlayer(viz.LINE_STRIP) viz.vertexcolor(1,0,0) mycurves1=viz.endlayer() mycurves1.dynamic() curvex=getposition() curvey1=getforce1() def curves1(): current_vertex=mycurves1.addVertex([curvex,curvey1,0],viz.ABS_GLOBAL) mycurves1.setVertex(current_vertex, [curvex,curvey1,0],viz.ABS_GLOBAL) current_vertex=mycurves1.addVertex([curvex,curvey1,0],viz.ABS_GLOBAL) vizact.onsensordown(sensor,4,mycurves1.clearVertic es) This is the part which result in error. | 
|  | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 10:58 AM | 
| SSAO Shader Implementation | FranciscoPeters | Vizard | 2 | 10-08-2011 04:19 AM | 
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 10:46 AM | 
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 10:46 AM | 
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |