Get π in python scripted expression for a driver?
1 Answer
pi
or radians(180)
should do the trick.
-
$\begingroup$ Thanks for the edit. I didn't know about the backticks. I'll try to remember them. :) $\endgroup$– user7952Dec 14, 2014 at 0:28
-
$\begingroup$ What import should be done to reference it in a script? In console
pi
is recognized, just asbpy
is, in a script however, I notice thatimport bpy
has to be done. $\endgroup$ Dec 29, 2020 at 18:17
pi
andradians()
without having to specify the math module. $\endgroup$