- This topic has 4 replies, 3 voices, and was last updated 3 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] AnimationLoop, Visitors and Tags
Tagged: 64_bits, Linux_other, SOFA_1608
Hi!
Problem statement:
I want to only execute components in some nodes of my scene graph.
This subset of nodes changes during execution depending on user interaction.
It is some kind of adaptive access to the tree.
Idea:
Changes during execution means python.
From what I understood I should use tags and switch them on the nodes during execution (using python)
But the DefaultAnimationLoop doesn’t care about tags.
Questions:
So, do I need to rewrite a specific animation loop ?
Should I put tags on the components in the tagged nodes to ?
Hi Lionel,
Did you have a look at the MultiTagAnimationLoop?
Not sure this class is very clean, but the idea is there.
Hugo
I looked into.
I created my own animation loop based on this one.
My animation loop takes a tag in input and add this tag to the visitors launched by the step function.
For now it doesn’t work.
Every component of my scene is activated (tagged or not)
Ok Thank you for the positive feedback Lionel.
I close the topic.
Do not hesitate to re-open an new topic for any further issues.
Best,
Hugo
Could you be kind enough to give us one example of the MultiTagAnimationLoop.
I have the problem that when I simulate the scene in .xml the constraints I specifed with FreeMotionAnimationLoop work fine. But when I limit the movement, putting a floor, this one doesn’t work, allowing the object to fall.
And I think, maybe using the MultiTagAnimationLoop helps me to specify the differens constraints I’m using.
Thanks for your help.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.