- This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] Multiple tags for an object?
Tagged: 64_bits, multiple tags, node, scene, SOFA_1608, tags, Windows_10, xml
Hi,
Does anybody know if the “tags” attribute in a child of the Node object in the scene supports multiple values? If so what is the syntax to add it? For example, I have the xml snippet as shown below:
<Node name="triangle-surface">
...
<TriangleModel bothSide="0" contactFriction="500.0" contactStiffness="500.0" group="1" moving="1" selfCollision="0" simulated="1" tags="HapticSurfaceVein" />
</Node>
Can I have a second tag in the TriangleModel in addition to HapticSurfaceVein?
Hi sayakbiswas,
Welcome into the SOFA community!!
Indeed, if I’m remembering well, the “tags” attribute supports multiple values, you can write both separated from a space:
<Node name="triangle-surface">
...
<TriangleModel bothSide="0" contactFriction="500.0" contactStiffness="500.0" group="1" moving="1" selfCollision="0" simulated="1" tags="HapticSurfaceVein SecondTag" />
</Node>
Let us know how it works.
Cheers,
Hugo
Thanks Hugo! That worked perfectly!
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.