Skip to content

Changing the scene file during the simulation and applying the changes without breaking the simulation #2887

Discussion options

You must be logged in to vote

Hi @zbounik
Activating/de-activating is possible only for nodes (see the associated data activated or sleeping).

You can although destroy components in python if you would like, but this might have strong side-effects..
e.g.

nodeToDelete = self.rootNode.getChild(str(name))
for obj in nodeToDelete.objects:
     nodeToDelete.removeObject(obj)
self.rootNode.removeChild(str(name))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zbounik
Comment options

Answer selected by zbounik
Comment options

You must be logged in to vote
1 reply
@zbounik
Comment options

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