Search Issue Tracker

Fixed in 3.1.0-preview

Votes

1

Found in [Package]

2.0.1-preview.11

Issue ID

1160192

Regression

No

[FBX Exporter][Timeline] "NullReferenceException" when trying to export a Timeline Clip with FBX Exporter

Package: FBX Exporter

-

Reproduction steps:

1. Open "1160192.zip" project and "SampleScene" scene
2. Select "Cube" Game Object in the Hierarchy
3. Open the Timeline Windows
4. Select "New Animation"
5. "GameObject" -> "Export Selected Timeline Clip..."

Expected Result: Timeline Clip is exported
Actual Result: "NullReferenceException: Object reference not set to an instance of an object"

Reproduced with: 2019.3.0a5, 2019.2.0b5, 2019.1.5f1, 2018.4.1f1, 2018.3.14f1
Did not reproduce on: 2017.4.28f1 (No PackMan)

Comments (3)

  1. fangye_Studio

    Nov 27, 2021 03:36

    if I select the cinematic track and export selected clips , it still has the same error
    fbxexport package :

    IExporteData.cs
    private static GameObject GetGameObjectBoundToTimelineClip(TimelineClip timelineClip)
    {
    object parentTrack = timelineClip.GetParentTrack();
    AnimationTrack animTrack = parentTrack as AnimationTrack;

    Object animationTrackObject = UnityEditor.Timeline.TimelineEditor.inspectedDirector.GetGenericBinding(animTrack);

    the animTrack is Null , it seems that virtual camera brain track can not be treated as an animtrack so that the object is null

  2. NKCy

    Aug 05, 2019 09:02

    I get the same error too.

    1. Select any object in a scene.
    2. Window > Sequencing > Timeline > Click "Create" button
    3. In Timeline window, check recording button, move time line and move object > animation is created.
    4. In Timeline window, select animator > menu > Convert to Clip Track
    5. Select timeline clip named "Recorded"
    6. On Unity's top menu, select Game Object > Export Selected Timeline Clip

    will results the following error:

    NullReferenceException: Object reference not set to an instance of an object
    FbxExporters.Editor.ModelExporter.ExportSingleEditorClip (UnityEngine.Object editorClipSelected) (at <ed6d9bae7a3e4e4ea6fa1b1d658e00cb>:0)
    FbxExporters.Editor.ModelExporter.OnClipContextClick (UnityEditor.MenuCommand command) (at <ed6d9bae7a3e4e4ea6fa1b1d658e00cb>:0)

  3. crogersarvr

    Jul 17, 2019 20:48

    I would get this error too. My solution (i only needed to export geo, no timeline) was to make a new prefab of of the node i wanted to export. then "unpack prefab completely" and then i could export it. having fbx files in the hierarchy i think is the problem. unpacking them solved it, i think.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.