Track IR - enable in Cyberpunk - control view by moving your head

+
I just managed to enable my Track IR in game - now i can use my head to look around while walking and while driving...Heres how to do it:

1. activate your favorite track ir profile
2. install this utility http://andersmalmgren.github.io/FreePIE/index.html
3. Download python script from link , and copy it somewhere
--> https://www.dropbox.com/sh/nrgnxn33y7u2n6h/AAAfsuLq1BLWdI6q_VPueO0_a?dl=0
4. Start FreePie - open File/New and load script you downloaded

This is script :
#Use Z to toggle on/off [DISABLED:and right mouse to activate head tracking]​
#(Good for games like Outerra)​
def update():​
yaw = trackIR.yaw​
pitch = trackIR.pitch​
deltaYaw = filters.delta(yaw)​
deltaPitch = filters.delta(pitch)​
if (enabled): #if (enabled and hotkey)​
mouse.deltaX = deltaYaw*multiply​
mouse.deltaY = -deltaPitch*multiply​
if starting:​
enabled = False​
multiply = 20​
trackIR.update += update​
#hotkey = mouse.rightButton​
toggle = keyboard.getPressed(Key.Z)​
if toggle:​
enabled = not enabled​
4. Save your script somwhere
5. Under Scripts / select Run

Link to youtube video -->
6. Thats it fire your Cyberpunk when in game select key "z" to activate head look
 
Last edited:
I have been trying to do with with a head ban and mercury (tilt) switches. There is a device for handicap to produce mouse movement for all PC software (seen it on amazon) but it cost $500!

My Head ban and tilt switch system hooks up to existing foot pedal system I already have.

But your thing works SO much smoother than mine! :)
 
Hey @Hreich

When I plug the code into freePIE and hit run script, it says there's an expected token in line 3.
Any possible solutions?
What am I doing wrong?

Post automatically merged:

Can you share a link so i can check that device?
Hey!
When I plug the code into freePIE and hit run script, it says there's an expected token in line 3.
Any possible solutions?
What am I doing wrong?
 
Anyone still doing this, I rewrote the script out by hand to get rid of the unexpected token thing but now Freepie is saying 'system cannot find the file specified' and I have no clue what it's talking about.

I also have no idea what this means:
1. activate your favorite track ir profile (could that be the missing step?).
but I'm using the Tobii 5 if that helps...

Appreciate any help...
 

Attachments

  • freepie.jpg
    freepie.jpg
    80 KB · Views: 231
Franc_Kaos - i am using naturalpoint TrackIr5 so you have to load profile through software utility for TrackIR5, Since i don't own tobii i don't know if it's gonna work...
 
Cheers for the response Hreich, just in case anyone else comes across this page I found a paid (about £3 so good value for money) version called FaceTracknoIR which works with Tobii 4c and 5 and has a free mouse emulate plugin.
It needs fine tuning but it works, especially great for the driving bits where I just wanna look left and right, just need to find a way for it to self centre (or something), but there's tons of options to explore...
 
I just managed to enable my Track IR in game - now i can use my head to look around while walking and while driving...Heres how to do it:

1. activate your favorite track ir profile
2. install this utility http://andersmalmgren.github.io/FreePIE/index.html
3. Download python script from link , and copy it somewhere
--> https://www.dropbox.com/sh/nrgnxn33y7u2n6h/AAAfsuLq1BLWdI6q_VPueO0_a?dl=0
4. Start FreePie - open File/New and load script you downloaded

This is script :
#Use Z to toggle on/off [DISABLED:and right mouse to activate head tracking]​
#(Good for games like Outerra)​
def update():​
yaw = trackIR.yaw​
pitch = trackIR.pitch​
deltaYaw = filters.delta(yaw)​
deltaPitch = filters.delta(pitch)​
if (enabled): #if (enabled and hotkey)​
mouse.deltaX = deltaYaw*multiply​
mouse.deltaY = -deltaPitch*multiply​
if starting:​
enabled = False​
multiply = 20​
trackIR.update += update​
#hotkey = mouse.rightButton​
toggle = keyboard.getPressed(Key.Z)​
if toggle:​
enabled = not enabled​
4. Save your script somwhere
5. Under Scripts / select Run

Link to youtube video -->
6. Thats it fire your Cyberpunk when in game select key "z" to activate head look
Could you only Look around ? Or could you lean forward and back too like in vr? Regards Cecil
 
I just managed to enable my Track IR in game - now i can use my head to look around while walking and while driving...Heres how to do it:

1. activate your favorite track ir profile
2. install this utility http://andersmalmgren.github.io/FreePIE/index.html
3. Download python script from link , and copy it somewhere
--> https://www.dropbox.com/sh/nrgnxn33y7u2n6h/AAAfsuLq1BLWdI6q_VPueO0_a?dl=0
4. Start FreePie - open File/New and load script you downloaded

This is script :
#Use Z to toggle on/off [DISABLED:and right mouse to activate head tracking]​
#(Good for games like Outerra)​
def update():​
yaw = trackIR.yaw​
pitch = trackIR.pitch​
deltaYaw = filters.delta(yaw)​
deltaPitch = filters.delta(pitch)​
if (enabled): #if (enabled and hotkey)​
mouse.deltaX = deltaYaw*multiply​
mouse.deltaY = -deltaPitch*multiply​
if starting:​
enabled = False​
multiply = 20​
trackIR.update += update​
#hotkey = mouse.rightButton​
toggle = keyboard.getPressed(Key.Z)​
if toggle:​
enabled = not enabled​
4. Save your script somwhere
5. Under Scripts / select Run

Link to youtube video -->
6. Thats it fire your Cyberpunk when in game select key "z" to activate head look
This is awesome Hreich, makes driving/riding so much more engaging. Thanks for posting
 
I just managed to enable my Track IR in game - now i can use my head to look around while walking and while driving...Heres how to do it:

1. activate your favorite track ir profile
2. install this utility http://andersmalmgren.github.io/FreePIE/index.html
3. Download python script from link , and copy it somewhere
--> https://www.dropbox.com/sh/nrgnxn33y7u2n6h/AAAfsuLq1BLWdI6q_VPueO0_a?dl=0
4. Start FreePie - open File/New and load script you downloaded

This is script :
#Use Z to toggle on/off [DISABLED:and right mouse to activate head tracking]​
#(Good for games like Outerra)​
def update():​
yaw = trackIR.yaw​
pitch = trackIR.pitch​
deltaYaw = filters.delta(yaw)​
deltaPitch = filters.delta(pitch)​
if (enabled): #if (enabled and hotkey)​
mouse.deltaX = deltaYaw*multiply​
mouse.deltaY = -deltaPitch*multiply​
if starting:​
enabled = False​
multiply = 20​
trackIR.update += update​
#hotkey = mouse.rightButton​
toggle = keyboard.getPressed(Key.Z)​
if toggle:​
enabled = not enabled​
4. Save your script somwhere
5. Under Scripts / select Run

Link to youtube video -->
6. Thats it fire your Cyberpunk when in game select key "z" to activate head look
This is working great for me. Thank you!
 
Top Bottom