tag:blogger.com,1999:blog-6525999360602726666.post2844642747095395785..comments2023-07-13T04:17:55.388-04:00Comments on Tech Animator Dump: Maya Callbacks and ReferencesRandallHhttp://www.blogger.com/profile/14282159002574790673noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-6525999360602726666.post-10150449120949415402016-04-18T09:34:48.800-04:002016-04-18T09:34:48.800-04:00Hey Randall. Thanks for getting back to me. Myself...Hey Randall. Thanks for getting back to me. Myself and our own resident melscript expert will have a look into those points you mentioned and see if we can bring this file back from the grave!<br /><br />I think i need to be a lot more rigorous with how I treat my refs in future! :)<br />M Symonshttps://www.blogger.com/profile/10807141517016331350noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-66513557167794357962016-04-16T20:23:33.205-04:002016-04-16T20:23:33.205-04:00Another thing to be on the lookout for is a new gr...Another thing to be on the lookout for is a new group in the outliner with the same namespace as your reference + Foster. It holds any broken constraints and whatnot just in case you fix the reference name later. Don't delete these if you intend on fixing your either renamed or deleted objects. RandallHhttps://www.blogger.com/profile/14282159002574790673noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-55661076606425468692016-04-16T20:19:58.853-04:002016-04-16T20:19:58.853-04:00Hey Mark, one thing to make sure is that you didn&...Hey Mark, one thing to make sure is that you didn't rename anything in the files that you have referenced in. If you did rename, the connections you've made in your scene will break. If you go to File > ReferenceEditor right click your reference > File > List Edits. At the bottom of the dialog that pops open will be missing edits. These are due to not finding objects that originally existed. It will list the objects original names and what connections were made, connections to constraints in your case. RandallHhttps://www.blogger.com/profile/14282159002574790673noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-25356029698857103282016-04-16T20:03:28.790-04:002016-04-16T20:03:28.790-04:00i think i've just encountered this problem. af...i think i've just encountered this problem. after working on some lighting, i reloaded my scene to apply my tests to the lights and noticed there was a car in my camera viewport that shouldn't be there.<br />i switched to perspective virw and realised with horror that all 7 of my referenced cars (from 2 different files) had totally lost their parent constraints, as had a camera PC'ed to one of the cars! they just weren't there in the outliner.<br /><br />what i'd like to know is could a callback script refix this error, or am i looking at redoing the linking manually.<br />i'm also now worried that my other 4 animations are likely to start suffering at some random time as well.<br />i did go back through a few earlier saves and they all seemed to have this issue, even though they had previously been working fine.<br /><br />apologies for the slight ramble, but i've been searching all weekend trying to find out why my files broke and your post seemed to shed a bit of light on the possible problem<br />cheers<br />markM Symonshttps://www.blogger.com/profile/10807141517016331350noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-46149969590202454732015-03-09T09:33:31.450-04:002015-03-09T09:33:31.450-04:00Nice Luke, You know, I considered evalEdeferred, b...Nice Luke, You know, I considered evalEdeferred, but I wasn't sure if it would still be called within the same scope of time. Good to know. Thanks for following up!RandallHhttps://www.blogger.com/profile/14282159002574790673noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-9332243356438313622015-03-08T19:44:39.669-04:002015-03-08T19:44:39.669-04:00Thanks for this, I didn't know about kAfterSce...Thanks for this, I didn't know about kAfterSceneReadAndRecordEdits - I assumed it was a bug! I think I hacked around it in the past with evalDeferred in the afteropen callback which ended up running my code at a time maya was ready to record reference edits. ie<br />def my_after_open_cb():<br /> pm.evalDeferred("import my_fix; my_fix.run()")Anonymoushttps://www.blogger.com/profile/13494843294052829747noreply@blogger.comtag:blogger.com,1999:blog-6525999360602726666.post-2282368264972794362015-03-06T14:31:43.025-05:002015-03-06T14:31:43.025-05:00Great post Randall, I also would love to know if t...Great post Randall, I also would love to know if there is a better option to do this, but thanks for working through it, I am glad I could help for now.<br />Brad Clarkhttp://www.riggingdojo.comnoreply@blogger.com