Notifications
Clear all

[Closed] Get the named track of a wire param

 PEN

Is there any way to get the named track that a paramWire is connected to?

I want to rip appart a pile of wires and rewire new tracks to the same driving tracks. I can’t see a way to get these.

7 Replies

would it be something like this?


myWire = $.radius.controller
Controller:Float_Wire
myTrack = (myWire.getWireParent 1)[myWire.getWireSubnum 1]
SubAnim:Segments

myWireEnd = myWire.getCoController 1
Controller:Float_Wire
myTrackEnd = (myWireEnd.getWireParent 1)[myWireEnd.getWireSubnum 1]
SubAnim:Radius

 PEN

Oh that looks prommising, I tried all sorts of things like that with no luck. I will report back with my findings.

Thanks

 PEN

Yep, doesn’t work.

myWireEnd = myWire.getCoController 1

That is where it fails and just returns undefined. I have a morph target wired to a parameters in a scripted modifier. The modifier is instanced, I don’t know if that makes any difference but it could be one of the causes.

 PEN

I’m guessing this is a case of Max being screwed up. When I run the first two lines on the first track of the moprher modifier it returns the subAnim of the morpher, I then open the paramWire dialog and indeed it looks like it is wired to it self. If I update the either of the windows by pressing the binocular button and press update the track that it is wired to now shows up and the first two lines return the track that it is wired to but the third still returns undefined.

 PEN

And in other cases

wire.getwireParent 1

also returns undefined until I refresh the wire as well.

no way to automatically refresh it? ( if that’s the only problem, at least )

 PEN

I have tried everying and nothing works to refresh it other then manualy or rebuilding it.