Extra files section & scripts overwriting

   588   0   0
User Avatar
Member
3 posts
Joined: Sept. 2023
Offline
Is it possible to use functions defined in a .py file loaded into an Extra files section in callbacks(of a button of an hda)? So far I did not manage to understand a proper way how to do it. I tried some dead ends like accessing the file through PythonModule in scripts tab but so far it seems to be a wrong approach.

Another question is regarding the possibility of the "OnCreated.py" script to modify other scripts like "PythonModule.py". I dont think it is possible. From what I understood it doesn't have the capability to modify the Python script associated with the operator type itself. I would like to confirm this thought.

Thanks for answers.
  • Quick Links