Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding node creation buttons, the python script is called through the button to dynamically add stl files. #1902

Open
BruceLvSwag opened this issue Jul 1, 2024 · 1 comment

Comments

@BruceLvSwag
Copy link

As a new player of UPBGE, I tried to use python script to load STL files. During this process, by running the script through the script running interface of UPBGE, the STL file can be successfully added and the STL model can be imported, as shown in the figure below.
image

However, using the same script file and dynamically importing the STL file through buttons in the node logic will also load the model, but the model object will not be created in OutLiner, as shown in the figure below.
image

Please tell me how should I solve the above problems?

@BluePrintRandom
Copy link
Member

you mean during runtime or after the engine quits?

you can uncheck 'undo at exit' and have your changes persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants