6
\$\begingroup\$

I am using the collada file format to contain my model and animation but when I use AssImp to load the file the name will be empty for the animation. Where is the name for animation set on the collada file format? The documentation seems to have pointed me to library_animations but I tried setting "name" and "id", but both did not end up setting the animation name.

To get the animation name I am simply doing

 aiAnimation* animation = mAIScene->mAnimations[i]; auto test = animation->mName; 
\$\endgroup\$
1
  • 1
    \$\begingroup\$ What are you using to export the file? The problem might be the exporter. \$\endgroup\$ Commented Jul 27, 2015 at 11:14

1 Answer 1

1
\$\begingroup\$

The problem is probably the exporter. According to official docs:

aiString aiAnimation::mName

The name of the animation.

If the modeling package this data was exported from does support only a single animation channel, this name is usually empty (length is zero).

Try to find one which does support multiple animations channel.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.