0
$\begingroup$

Numerical property input fields accept what seems to be arbitrary Python code. E.G.:

tau/pi evaluates out to 2.

[exec("from random import random as randr"), (lambda x: x/x)(randr())][-1] evaluates out to 1.

Is there some way to edit the namespace in which expressions are evaluated for property inputs, maybe similar to bpy.app.driver_namespace?

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.