Home Technical Talk

Expression Function in 3ds Max

Armitage19
polycounter lvl 4
Offline / Send Message
Armitage19 polycounter lvl 4
Hey,

I need the code for a Pythagorean theorem in 3ds Max.
For getting the distance between two Vectors.
So i did study this page here.
http://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/3DSMax/files/GUID-B8CBF0C7-B901-4A87-8D20-778BBE12BEA6-htm.html

And i made several expressions trying to get the function.
But its always failing.
I tried the "square" function (x2 ) but it seems not to work.
And on this homepage i couldnt find this function.

One of the examples i made was this.

sqrt((v2.x-v1.x=A,A*A=D)+(v2.y-v1.y=B,B*B=E)+(v2.z-v1.z=C,C*C=F))

But that isnt working either.

I think i do something wrong with the code. Someone knows a solution?
Thank you!

Replies

Sign In or Register to comment.