Notifications
Clear all

[Closed] MAXScript Wire Controller Exception when Parameter wiring inside XREF Scenes

I have some functions that wire parameters with code like this:

paramWire.connect object1.pos.controller[#X_Position] object2.controller[#X_Position] "X_Position"

That script works fine in the scenes whenever the scripts are run; furthermore, the wiring always persists after the file is close/opened, etc.

But whenever I have another scene that references scenes with objects wired that way (by adding it as a XRef Scene) I always get MAXScript errors that says something like this:

– Frame:
– position: [2560,256,0]
>> MAXScript Wire Controller Exception:
– Unknown property: “pos” in undefined <<

Is there a way to rewrite the paramWire to avoid these errors?