Sqrt() in Blender 2.8

Hey :slight_smile:

I am writing a small script in Blender and need some math functions (especially the square root).
sqrt() is not defined, I cannot import math or sqrt from math.

How do you use these functions in blender? I am running Blender 2.8 on linux (ubuntu).

Thanks if someone knows!

from math import sqrt

Doesn’t work?
There’s nothing special about python inside Blender. If you can’t import from python’s standard library then I would assume there’s something wrong with your install.

1 Like

Oh wow, it works. I thought i tried this several times and it didn’t work - don’t know what i made wrong :smiley:

Thank you and sorry :slight_smile: