Time offset cache access


#1

Hello,

Is there a way to offset the cache access in time without renaming the cache files?

I’d like to have multiple cloth objects access the same cache at different times. I suppose I could do this by baking to blendShapes, but that seems to make the scene kind of heavy.

If this isn’t possible, is there another form of caching in which it would be possible? I’ve seen a few other forms of caching that I haven’t really looked into yet: exportCache, jiggleCache, vertexCache.

-ds


#2

//something like this could work…

//a syCache node (skirt1_syClothTrs), reading the cache

//create an attr somewhere

addAttr -ln timeMult -at double -dv 1 skirt1_syClothTrs;
setAttr -e -keyable true skirt1_syClothTrs.timeMult;

//disconnect the input time attr frome the cache node.

disconnectAttr time1.outTime syCache_skirt1.time

//create and expression to hook time back into the cache node via a multiplier
expression -s “syCache_skirt1.time= skirt1_syClothTrs.timeMult*frame;” -o “” -ae 1 -uc all ;

//dependant on the new attr multiplier , it will either slow down the cache or speed it up…

//or some other expression to adjust the input time of the cache attr…


#3

I’ve done pretty much the same thing with utility nodes… works a charm
:^)

.j


#4

Thanks for the responses. I don’t seem to find a syCache node; I see syCache node type listed under auxiliary nodes, but when I check the Hypergraph with ‘show auxiliary nodes’ on, I still don’t see it there. But in any case, I got the same thing to work just by disconnecting time from the syCloth node. Thanks again!

-ds


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.