So,
Xrefs seem to work in Max now… as long you don’t try and get them setup through script it seems.
It is more likely that I am doing it wrong.
Here is the code I am using at the moment:
-- Get all the names of the objects in the target file.
objNames = getMAXFileObjectNames charFile
-- Xref all of the objects.
objXRefMgr.mergeTransforms = False
xrefs.addNewXRefObject charFile objNames modifiers:#merge manipulators:#merge dupMtlNameAction:#useXRefed
-- Set all of the controllers to be local to the scene, so no animation is lost.
for obj in Objects do
(
Try
(
obj.Transform.Controller.xrefCtrlStatus = #Local
)
Catch()
)
This merges the modifiers in, which pretty much defeats the point of setting up the Xrefs, but it keeps the file stable once re-opened.
However, the custom attributes lose their references to other modifier objects which is lovely…
If I xRef the modifiers (as they would be if done through the xRef objects dialogue), then the scene completely loses it’s sh!t when re-opened.
Has anyone else had a poke around with this yet, and if so, had any success xReffing a full and complex rig into a scene?
Thanks in advance.