0
$\begingroup$

Complete re-edit of the question to make it less broad. How do you make a script when executing at blender start-up not throw any errors about scene context

AttributeError: '_RestrictedContext'

This script works when run from a blend file. The script imports a none blend file object

Simple?

$\endgroup$
15
  • $\begingroup$ Hi Nathan, Welcome to Blender.SE. I have edited your question and removed redundant information. I think it could be clearer in this shorter edit. Does it still conform to your original intent? $\endgroup$
    – Leander
    Apr 20, 2019 at 12:06
  • $\begingroup$ Hi Leander the edit is fine $\endgroup$ Apr 20, 2019 at 12:23
  • $\begingroup$ How long does it take to get a reply usually?? $\endgroup$ Apr 20, 2019 at 12:24
  • $\begingroup$ Infinitely long, if no one knows the answer. Some things just may not be possible. $\endgroup$
    – Leander
    Apr 20, 2019 at 12:35
  • 1
    $\begingroup$ Possible duplicate of Accessing bpy.context gives a '_RestrictContext' warning, how to fix this? $\endgroup$ Apr 21, 2019 at 10:46

0

You must log in to answer this question.

Browse other questions tagged .