Hi,
I’m just learning my way around in C4D and was attempting to write a python script to calculate the distance between two points. I was surprised to find how tricky it was to code the math without the python numpy module which specializes in vectors and matrix calculations.
Here is the line of code I would like to include in my script:
WhlBsDstnc = np.linalg.norm(drvrFrntWhlgp-drvrBckWhlgp)
Doing some on-line research I found this thread on the development support forum:
http://www.plugincafe.com/forum/forum_posts.asp?TID=12425&PN=1
After attempting ScottA’s “Anaconda swap solution” and some of the steps outlined by Niklas in his “compiled binaries” solution I have come up empty handed.
It seems severely restricting not having access to the numpy module.
Is there any help to be had? How can I access numpy from my C4D python scripts?
Thanks,
Thom