Jump to content

Matt901

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Matt901

  1. 19 minutes ago, Dengar said:

    As a matter of fact, that can be done. Quite easily too. Just look at the "SCMLProcessor" class and fiddle with it a little. Rename the method to something else, have some way to have the user target the .scml file (like Selection.SelectedObject (or something like that, idr the exact property)) and then create a menu item from it or something.

    Hi Dengar, thanks for the response!

    Yeah it was a case of posting before I'd actually taken a closer look at it (it was pretty late!). Managed to get it working with minimal effort. Thanks though!

     

    For anyone else who may need it, just dump this in the ScmlPostProcessor class :

     

     [MenuItem("Spriter Utilities/Animation/Update Spriter Animation")]
            private static void Process()
            {
                var filesToProcess = new List<string>();
                filesToProcess.Add(AssetDatabase.GetAssetPath(Selection.activeObject));
                Debug.Log(AssetDatabase.GetAssetPath(Selection.activeObject));
                ProcessFiles(filesToProcess);
            }

     

    All you gotta do is select the SCML file in the project view, and then up top next to the Window / Help tool bars, there'll be one called 'Spriter Utilities'. Follow that menu through and click it, and you're set!

     

    If you want to stop the 'Auto Updating' of it when imported, comment out / change the name of the function called 'OnPostProcessAllAssets' towards the top of the same class.

  2. Hey there,

    First off - love this package. It's a real lifesaver, thank you for taking the time to do this.

    I have a question though, which I'm hoping you'll be able to help with.

    I'm not too familiar with how Asset Processing / Importing scripts work within Unity, but we've been having trouble with Auto processing feature undoing any work we've done within Unity when passing the project across SVN.

    Is it possible to disable the auto processing, and instead, tell it when we'd like it to process? The ability to have the Animations / Prefabs update as you create them in Spriter is wonderful and we'd rather not lose this functionality if possible.

    If you have any insight, it would be greatly appreciated.

    Thanks in advance,

    Matt

×
×
  • Create New...