Can't get 'RecordAnimation' to work 4.11

I’ve been trying to use the new ‘RecordAnimation’ command in 4.11 to record animations during gameplay. It always says that command not recognized and I’ve tried a variety of different syntax situations.

I’m not sure what the proper actor is, I’ve tried printing the mesh of the character to screen which usually outputs CharacterMesh0 but the command does not respond or doesn’t seem to be linked.

Did the command change? Does a specific type of Actor need to be typed first or did it change to RecordSequence (per twitter convo)?

I’ve tried:
RecordAnimation CharacterMesh0 /Game/MyRecordings
RecordAnimation PlayerController_0 /Game/MyRecordings
the same with RecordSequence instead

How do I get this working, and how can I best find the right ID of the spawned character mesh?

Hey, you can get the actor ID name from the world outliner - just select ID name to display in the second column. It’s is usually of the form ActorClassName_C_0 where that _0 can be any number. Once you have this try entering:

RecordAnimation ActorClassName_C_0 /Game/SubDir/AnimToRecordTo

In game you can get info about ID names from “displayall pawn mesh”. Note again that it is the actor ID name and not the name of any of the components you are needing.

RecordSequence is a seperate new feature forthcoming for 4.12 that allows recording of multiple actors into a LevelSequence. RecordAnimation will still work in 4.12 as well.

Unfortunately there is no error output or syntax checking for the command in 4.11 so all you will get if any args are incorrect is “command not recognised”.

Also worth noting that this only works in editor of when running the editor with “-game”.,

Thank you, this works perfectly. I ended up typing something to the effect (using the third person default templatE)

RecordAnimation ThirdPersonCharacter_167 /Game/ThirdPerson/AnimTest

FYI, here are some other options for getting the actor name:

  • “obj list” command (e.g. “obj list class=thirdpersoncharacter”)
  • Use the “ToggleDebugCamera” command. You can fly around and see details about the object under the reticle, assuming it has collision.

Cheers!

How to run editor with “-game”?

In 4.13 this isn’t working for me. Is there another piece of information that I’m missing.

at the console I try:

RecordAnimation VR_Character_C_0 /Game/Content/Animations/test

And I get a can’t find file in error in return.

[2017.02.15-11.01.47:493][ 76]LogUObjectGlobals:Warning: Failed to load ‘/Game/Content/Animations/test’: Can’t find file ‘/Game/Content/Animations/test’
[2017.02.15-11.01.47:493][ 76]LogUObjectGlobals:Warning: Failed to find object ‘Object /Game/Content/Animations/test.test’

Before this I was getting a missing folder error, but that went away when i used the correct path, but i still get the file error. I tried created an anim uasset file with the same skeleton at the file location it’s checking. That doesn’t work either. I wouldn’t think that should be necessary since it should be writing a new uasset file no? Seems like there’s some critical piece of information I’m missing, but google can’t help me. Anyone know what I’m missing?