6
$\begingroup$

just downloaded todays Blender 2.8 build and it seems I can no longer import a function from another Textblock. Works well on a build from April 5th (haven't updated since then).

This simple example is not working in todays build:

import module broken

$\endgroup$
8
$\begingroup$

Solved: there was an API change. Thanks to @alyawn for posting the solution here

This is how it works now: enter image description here

something = bpy.data.texts['something.py'].as_module()
| improve this answer | |
$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.