Surprisingly noticed that among the functions to work with Hair Cache in Maya there is’t any command to use available disk cache. For example, I calculated the dynamics in a separate scene and then I wanted to throw it in the root scene. On the revenue came MEL script…

 

select -r “hairSystem1”;

CreateHairCache;

string $temp = <here put your cache filename>;

AEassignDiskCB  cache_hairSystemShape1.cacheName  $temp “disk cache”;

updateCacheContents cache_hairSystemShape1;

Maya hair. Cache import
Tagged on:             

3 thoughts on “Maya hair. Cache import

  • Monday April 27th, 2015 at 02:30 PM
    Permalink

    Hi, your script is exactly what i need, thank you man!
    But there is some error, of course in the one part that i’m interrested in :

    AEassignDiskCB

    It says // Error: line 8: Cannot find procedure “AEassignDiskCB”.

    Any Idea please?

  • Monday April 27th, 2015 at 05:22 PM
    Permalink

    Hi,

    this procedure is located in that file (Maya 2013 x64) – c:\Program Files\Autodesk\Maya2013\scripts\AETemplates\AEdiskCacheTemplate.mel

    It’s the global procedure, if hair is active in your maya, it should be visible I think. What version of Maya do you use ?

  • Wednesday April 29th, 2015 at 09:54 AM
    Permalink

    Hi thank’s for taking time to answer.
    Maya 2015, last service pack.
    Wierd, every plugings are load in (i just checked).

Leave a Reply

Your email address will not be published. Required fields are marked *