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

Exporting node tree to python code doesn't work if the node tree has a sub-program node #1476

Closed
MoamenAbdelsattar opened this issue Jul 15, 2020 · 3 comments
Labels

Comments

@MoamenAbdelsattar
Copy link

MoamenAbdelsattar commented Jul 15, 2020

In the developer's panel, there is a button which exports the node tree to a python code. If the node tree doesn't contain any (Invoke subprogram) nodes the resulted script works well. However, if the node tree has any invoke subprogram node, the resulted script doesn't work and gives an error like: "name '_subprogram_zxltfwbszv806qn' is not defined".
Is there a way to un-pack or un-group all subprograms before exporting to code?

@MoamenAbdelsattar MoamenAbdelsattar changed the title Exporting node tree to python code doesn't work if the node tree has a sub program Exporting node tree to python code doesn't work if the node tree has a sub-program node Jul 15, 2020
@OmarEmaraDev
Copy link
Collaborator

To get the execution code of the subprogram, just select one of its nodes and press the button that exports the execution code. You will find a single routine, called main, this is the routine we call _subprogram_zxltfwbszv806qn.

@stale
Copy link

stale bot commented Aug 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 14, 2020
@MoamenAbdelsattar
Copy link
Author

Thanks for respond! I forgot to close this issue.

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

No branches or pull requests

2 participants