[Closed] wires dont work after renaming
Hey all,
I have a character rig setup with wire parameters. I have a script to search and replace all the object names. As soon as I do this the wires break since they are still looking for the old names in the wire expressions.
So I am looking for a script which can collect all the controllers of a specific type (float wires) for the objects in my scene. I really appreciate the help
Cheers,
Vikram.
Sorry about this. I answered it myself. I need to have variables with the character names in the wire expressions.
Never call on objects in a wire by name in any way. Wires should only be wired from one track to another.
Use a script controller instead and again never refer to an object by name. Always add a variable in the left hand pane and refer to that in the script.
Thanks for that Paul.
That gets me to my next question. Do I use wires or script comptrollers for the rig if either does what I need?
Cheers,
Vikram
Wires for one to one connections and script controllers for just about everything else
Hey Paul,
Is there a way to find out the object for which the expression has been written inside the wire parameter dialog. I mean if I have connected box1 x position to box2 y position, can I from the wire parameter dialog identify box2 as an object.
Cheers,
Vikram.