Assigning AnimBlueprints to an array and setting the Anim Class to one of the blueprints in the array.

I’m using the above function to get all of my AnimBlueprints into an array. When running the game I can see all of them in the array.

I’ve tried using the Get Class Node in the second image here. Using it sets my Anim Class on my character to AnimBlueprint. I’ve also tried using the same to select the class but I cannot connect a string to a class node. Am I just going about this whole thing the wrong way?

Curious, but in the second photo, have you connected a PRINT STRING to the GET CLASS return value?

If so, what is the output value?

If that value is NULL, then you have an issue with your code.

When connecting a print string node to the get class it prints “AnimBlueprint”.

And is that the name of your blueprint? Because, if it isn’t, then that’s not the correct node.

No that’s not the name of any of the animation blueprints inside the array. Which node isn’t the right node?

It’ll be MUCH easier if you start over. Reverse-engineering is a pain and you have a better understanding now.

So, attach print strings to all of the nodes so you see what they return. You’ll then know how you used them incorrectly.

I’ve started over on this several times all my links on google and bing are purple. I either get none or AnimBlueprint for everything i try that will connect. I just need to figure out a way to find the correct classes for these objects but there seems to be none. Even just being able to set the class from a string would work but i cannot find a single node or workaround to allow that either.

Could you try changing the Tail Animation Blueprints variable to Class Reference instead of Object Reference.

image

And then adding the return value of Get Class to the array like so :

Get Class might still just return Anim Instance but, worth a try.

Solved a similar issue recently :

I tried this and nothing is added to the array at all now. I tried swapping the parent class in Class Is Child Of Node but both AnimInstance and AnimBlueprint both return the same result of nothing.

Edit: Made a mistake connecting something they return AnimBlueprint in the array not the correct one.

This is the only workaround I have found that semi works, but I have to input each one by hand. Which is kind of the whole point about doing the above so I can get it to load itself as long as i name it correctly and put it in the correct folders.

I still have not been able to figure something out for this if anyone has any ideas.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.