Hey! Thanks Luke, I also was looking for something like this, I can't believe I've missed in docs :-]
Thanks 2012/11/16 Paul Molodowitch <[email protected]> > Hmm... didn't know about kBeforeReferenceCheck. This looks like it could > be exactly what I was looking for... thanks! > > - Paul > > > On Wed, Nov 14, 2012 at 1:54 AM, lukeha <[email protected]> wrote: > >> A bit late to reply maybe, but i've started using a kBeforeReferenceCheck >> for stuff like this (changing what path a scene references based on certain >> rules). >> There's an example in the docs where the path is replaced before the >> reference is loaded: >> >> http://download.autodesk.com/global/docs/maya2013/en_us/index.html?url=files/GUID-7F9305BF-5515-49DC-900B-61268611F8B1.htm,topicNumber=d30e125518 >> Luke >> >> On Friday, October 26, 2012 11:32:36 PM UTC+1, matt wrote: >> >>> nope, scratch that, it still triggers an errror with the >>> selectivepreload option enabled if it can't find the scene. what a silly >>> design. >>> >>> sorry. >>> >>> >>> >>> On Sat, Oct 27, 2012 at 8:27 AM, Matt Estela <[email protected]> wrote: >>> >>>> Re the mb issue, we have a command line mb2ma utility at work for this >>>> sort of thing. The RnD folk implied it was a trivial tool to implement, >>>> but I have no idea if that was done using the API, or derived from the >>>> MayaMan code at Animal Logic. I can ask. >>>> >>>> Re the core issue, I know I've used an option on the file->load dialog >>>> to enable a selective reference load GUI. Not in front of maya right now, >>>> but I'm sure I've used this to fix the problem you describe. Ie, load the >>>> scene, tell it to load NO references, then try and fix the refrrence within >>>> maya, or at the very least save a .ma that can be hacked. >>>> >>>> Unfortunately it sounds suspiciously like the loadreferencedepth call >>>> you mentioned, which implies it might not be able to be controlled via >>>> code. Will take a look when I can. >>>> >>>> >>>> On Saturday, October 27, 2012, Paul Molodowitch wrote: >>>> >>>>> I've had success find/replacing reference names in the ascii text >>>>>> files, but haven't tried to fix this through Maya itself. >>>>>> >>>>> >>>>> Unfortunate, in our particular case, the scenes are saved as an binary >>>>> .mb. I COULD still try to do string replacement searching in the binary >>>>> file, but I highly this likely be a bad idea: who knows if/where it would >>>>> have stored memory offsets, table sizes, boundary-padding, etc that would >>>>> have to be adjusted.. >>>>> >>>>> - Paul >>>>> >>>>> -- >>>>> view archives: >>>>> http://groups.google.com/**group/python_inside_maya<http://groups.google.com/group/python_inside_maya> >>>>> change your subscription settings: http://groups.google.com/** >>>>> group/python_inside_maya/**subscribe<http://groups.google.com/group/python_inside_maya/subscribe> >>>>> >>>> >>> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
