Tape Helper value problem

Hi i am trying to get the the ZX plane Value of my Tape Measure helper.
i attached a picture of what i mean by ZX plane value so i don't confuse anyone.

i know how to get the distance
getTapeDist $tape001

but cant get the ZX plane value.

Thanks in advance

AttachmentSize
tapemd.jpg50.07 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jos's picture

function

wrote a function for it, much better

function getToPlane TapeNode ToPlane =
(
	n1 = [TapeNode.pos.x - TapeNode.target.pos.x,TapeNode.pos.y - TapeNode.target.pos.y,TapeNode.pos.z - TapeNode.target.pos.z]
	abs( acos (dot (normalize n1) (normalize ToPlane)) - 90)
)
getToPlane $ [0,0,1]
jos's picture

you'll have to calculate this

seems that you cant acces this info.
this script get the "To .. Plane"
the first function in comments is for "To .. Axis"

x1 = $Tape001.pos.x
x2 = $Tape001.Target.pos.x
 
y1 = $Tape001.pos.y
y2 = $Tape001.Target.pos.y
 
z1 = $Tape001.pos.z
z2 = $Tape001.Target.pos.z
 
n1 = [x1,y1,z1]/[x2,y2,z2]
n1 = [x1-x2,y1-y2,z1-z2]
n2 = [0,0,1]
 
--fn getVectorsAngle n1 n2 = ( acos (dot (normalize n1) (normalize n2)) )
fn getVectorsAngle n1 n2 = abs( acos (dot (normalize n1) (normalize n2)) - 90)
 
ToAxis = getVectorsAngle n1 n2
 
print ("To " + n2 as string + " Axis = " + ToAxis as string)
Mrjacks2o's picture

Thanks!!!! so in my case to

Thanks!!!! so in my case to get the value of "ZX"
I changed the getToPlane $ [0,0,1] to -> getToPlane $ [0,1,0]
thanks so much for your help :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.