Search Unity

How to get the frame rate of the animation from a *.anim file or *.fbx file

Discussion in 'Scripting' started by Aldrick, Mar 4, 2015.

  1. Aldrick

    Aldrick

    Joined:
    Feb 19, 2014
    Posts:
    64
    I want to extract the frame rates of all fbx(or anim) animation assets in the projects folder into a xml file to make a spreadsheet.But I cannot find any editor class in scripting reference that is relevant to this.Does any one have an idea?

    I didn't find relevant methods in maxscript either.

    The core is to get the frame rate from a fbx animation file I guess.

    Thank you limitlessly.
     
  2. Aldrick

    Aldrick

    Joined:
    Feb 19, 2014
    Posts:
    64
    Solved myself.
    Simply load an anim file as AnimationClip which has a FrameRate property and use it like an engine asset.