Skip to content

how can i import my own .py file and use this in the script node? #1918

Answered by OmarEmaraDev
luckychris asked this question in Q&A
Discussion options

You must be logged in to vote

I think the Blender way to do that would be:

driverFunctions = bpy.data.texts['driverFunctions.py'].as_module()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luckychris
Comment options

Answer selected by OmarEmaraDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1917 on May 13, 2023 10:07.