dereklewis12 Posted December 8, 2015 Share Posted December 8, 2015 (edited) Hey guys, I have a digital asset I have been working on. It simulates a weapon firing and I am using a parameter at the top level of the digital asset to set the fame numbers it should fire on. The good news is everything seems to work fine if there is nothing cached. Bad news, after I sim it once and go back and change those frame numbers that tell it when to fire, the cache doesn't get cleared and it just continues to play the previous cache. Just looking for some advice on what is causing this or a way to fix it? I currently can not share the .hip I'm working in but if absolutely necessary I could probably make a similar test scene. EDIT: I went ahead and created an example file that is representative of my original file. I figured it would just be easier that way. It is attached. DA_TEST.hip da_test.hda Edited December 8, 2015 by dereklewis12 Quote Link to comment Share on other sites More sharing options...
michael Posted December 8, 2015 Share Posted December 8, 2015 you could put a callback on the "is_firing" parameter that forces both sims to reset after looking further... DOPs can't read that attribute...you'd be better off leaving impulse activation at 1 and doing the logic up in SOPs... Quote Link to comment Share on other sites More sharing options...
dereklewis12 Posted December 8, 2015 Author Share Posted December 8, 2015 Oh, I had no idea DOPs couldn't read that? I set the is_firing frame numbers on the DA but then inside the DA apply that as an attribute on a point that is also called is_firing. I thought that would tie it all together and force it to recook when the parameter changes because the DOP is actually reading the point attribute inside the DA. Could you explain why DOPs can't access that? And I'm not real clear on what you mean by handling the logic up in SOPs. I thought that was kind of what I was doing by applying it to a point attribute but I could be misunderstanding how this is working entirely. Thank you for the response and help. Quote Link to comment Share on other sites More sharing options...
dereklewis12 Posted December 9, 2015 Author Share Posted December 9, 2015 I double checked it again and it does seem to be reading the value correctly, the first time at least. The problem is with it caching and then not realizing things up the chain, like at the top level DA, change and it needs to recook. Any ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.