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

Better Run button #65

Closed
hu-po opened this issue Apr 23, 2021 · 7 comments
Closed

Better Run button #65

hu-po opened this issue Apr 23, 2021 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@hu-po
Copy link
Member

hu-po commented Apr 23, 2021

To properly run the "run" script, a zpy user has to click the "Run" button under the ZPY panel. If they click the "Run" button in the Blender script panel, it will not save and reset the scene, resulting in simulation drift. We should provide a warning, or simply make the "run" button in the blender script also a valid option.

@hu-po hu-po added bug Something isn't working enhancement New feature or request labels Apr 23, 2021
@kursad-k kursad-k removed their assignment Apr 23, 2021
@hu-po hu-po added this to To Do in Blender Addon Apr 23, 2021
@hu-po hu-po moved this from To Do to In Progress in Blender Addon Apr 28, 2021
@hu-po
Copy link
Member Author

hu-po commented Apr 28, 2021

clicking the Run button in the Execute Panel is causing Blender to fudge the context in some way? I've tried smaller versions of the scripts and run them from the text editor's run button and they work fine, it's when you use the zpy Run function that things go wrong

@hu-po
Copy link
Member Author

hu-po commented Apr 28, 2021

Object selection does not change bpy.context.active_object
image

@hu-po
Copy link
Member Author

hu-po commented Apr 28, 2021

image

@sammiezumo
Copy link
Contributor

image

@sammiezumo
Copy link
Contributor

selection != active object is what I've found so far. This snippet clears both selection and active object, then sets again. Works to select the object but doesn't seem to fix the problem with the make objects real operator.

@hu-po
Copy link
Member Author

hu-po commented Apr 28, 2021

Might have found a clue here. There seems to be a difference between "active" and "selected"
image

@hu-po
Copy link
Member Author

hu-po commented Apr 28, 2021

Also hitting Play button on the script does not cause this:
image

@hu-po hu-po moved this from In Progress to Done in Blender Addon Apr 28, 2021
@hu-po hu-po closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

3 participants