79256114

Date: 2024-12-05 20:18:04
Score: 2.5
Natty:
Report link

Use the .as_module() method.

Text_01 contains:

fruit = "apple"

Text_02 contains:

import bpy
text_01 = bpy.data.texts['Text_01'].as_module()

print(text_01.fruit)

here is a screenshot that might help

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Artur Ertel