Notifications
Clear all

[Closed] XrefObject to BaseObject to Node

My problem is that when you use Xref Objects Rigs To Animate layers and hierarchy will diverge if you update the source character files. I want to write a script to update the layers and hierarchy from the source file.

There are plenty of ways to get the ref to the source file’s BaseObject. But I can’t seem to get the node itself. Maybe it’s not possible?


$.actualBaseObject
..Editable Spline

$.GetSourceObject true
..Editable Spline

s = $.getSrcItem()
s.Editable_Spline__Object
..Editable Spline

So, my question is there a way to get the source file’s node from the ActualBaseObject of the XRefObject?

My workaround is to actually open and survey the XRef’d files. But that’s a lot messier obviously.

2 Replies

the node of x-ref object is what you have in your current scene. you can’t get access to original node which is in the different file. the only way is to x-ref whole scene as a x-ref file and get it from there.

Thanks for the input Denis!