WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-08-2011, 10:19 AM
mouweimin mouweimin is offline
Member
 
Join Date: May 2010
Posts: 3
how to add the system path of Arrington Application

I have trouble to follow the document in vizard regarding arrington plug-in. I have enclosed the instruction below. The trouble part is in red.

"The Arrington plug-in is implemented as a Vizard extension. In order to use the plug-in you must first run the ViewPoint software. The plug-in communicates with the ViewPoint software through the VPX_InterApp.dll file that is located in your ViewPoint application directory. In order for the plug-in to find this file, the ViewPoint application directory must be located on the system path or the Vizard script must be placed within the ViewPoint application directory."

My viewpoint application is located in C:\Users\shopuser\Desktop\ViewPoint 2.8.6.21.

My script is like

import viz

viz.go()


arrington = viz.add('arrington.dle')

#Connect to eye tracker
Eye_L = arrington.addEyeTracker(eye=arrington.EYE_B)
Eye_R = arrington.addEyeTracker(eye=arrington.EYE_A)

#Print smoothed gaze position (default)
print 'left eye smoothed', Eye_L.getPosition()
print 'right eye smoothed', Eye_R.getPosition()

If I put the script in a file located in the viewpoint application folder, i.e. C:\Users\shopuser\Desktop\ViewPoint 2.8.6.21, it works.

But I do not want to put the script in the viewpoint application folder. I try to follow "the ViewPoint application directory must be located on the system path". Anyone know how to do that exactly? Many thanks.
Reply With Quote
  #2  
Old 06-08-2011, 05:33 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could add the following to your script:
Code:
import sys
sys.path.append('C:/Users/shopuser/Desktop/ViewPoint 2.8.6.21')
Reply With Quote
  #3  
Old 06-08-2011, 05:47 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The system path refers to the PATH environment variable. Right-click on "My Computer", click "Properties", select the "Advanced" tab, then click "Environment Variables". This will popup a dialog where you can edit the system environment variables. Just add the viewpoint directory to the PATH variable.
Reply With Quote
  #4  
Old 06-08-2011, 09:30 PM
mouweimin mouweimin is offline
Member
 
Join Date: May 2010
Posts: 3
Hi Jeff and farshizzo, thank you very much.

Actually I tried both following one old thread in the forum, but I typed '\' instead of '/'.

In the script, I used
import sys
sys.path.append('C:\Users\shopuser\Desktop\ViewPoi nt 2.8.6.21')

In the system PATH variable, I added 'C:\Users\shopuser\Desktop\ViewPoint 2.8.6.21'. But it did not work.

Tomorrow I'll try '/'.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array, concatenate, multiple path help please sircedric4 Vizard 3 10-28-2009 05:14 AM
smoothing a cubic bezier path just alex Vizard 10 04-22-2009 01:07 PM
Problems with interaction of vizact.turn and animation path Enlil Vizard 3 11-24-2008 04:23 PM
speed on animation path whj Vizard 8 11-17-2008 07:41 PM
Max system latency for HMD? vjesse Vizard 4 10-13-2008 05:48 PM


All times are GMT -7. The time now is 04:18 PM.


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