rajnishv
07-16-2016, 03:47 AM
Hi Jeff,
I need each of the euler values separately from
vizconnect.getTracker('HeadTracker').getEuler():
I have managed to get the euler values of the head tracker by the code thrugh vizconnect.
Code:
#------------------------------Vizrad Code Start---------------------------------#
def restrictRollFromHeadTracker():
headTracker=vizconnect.getTracker('dtrackheadtrack er')
eulrHeadTracker=headTracker.getEuler()
print 'the position and euler are',eulrHeadTracker
vizact.ontimer(0,restrictRollFromHeadTracker)
#------------------------------Vizrad Code End---------------------------------#
But i need each of the values 'separately' such as..yaw,pitch and roll and want to store into 3 separate variables and then want to apply on the tracker node with some different values.
I am not able to found the code or command to deal with it.
Waiting for ur reply.
Thanx & Regards!!!
Mr.Rajnish Vishwakarma
Software Developer
at
Xenium Digital Pvt. Ltd,Mumbai
(Customer of world viz)
I need each of the euler values separately from
vizconnect.getTracker('HeadTracker').getEuler():
I have managed to get the euler values of the head tracker by the code thrugh vizconnect.
Code:
#------------------------------Vizrad Code Start---------------------------------#
def restrictRollFromHeadTracker():
headTracker=vizconnect.getTracker('dtrackheadtrack er')
eulrHeadTracker=headTracker.getEuler()
print 'the position and euler are',eulrHeadTracker
vizact.ontimer(0,restrictRollFromHeadTracker)
#------------------------------Vizrad Code End---------------------------------#
But i need each of the values 'separately' such as..yaw,pitch and roll and want to store into 3 separate variables and then want to apply on the tracker node with some different values.
I am not able to found the code or command to deal with it.
Waiting for ur reply.
Thanx & Regards!!!
Mr.Rajnish Vishwakarma
Software Developer
at
Xenium Digital Pvt. Ltd,Mumbai
(Customer of world viz)