[Closed] Wiring the weight of a ListController
I’m trying to wire the Weights of a Rotation List Controller to a Custom Attribute. The listener gives me this: [Edited for simplicity]
paramWire.connect [ATTRIBUTE] ListController[#Weight__FK] “ikfk_blend”
Of course executing the line given by the listener doesn’t work. The error is no “get” function for undefined. I assumed it should look like this, but that gives the same error:
paramWire.connect [ATTRIBUTE] ListController.weight[1] “ikfk_blend”
This guy asked this question a couple of years ago…(his second question)…but that went unanswered. http://forums.cgsociety.org/showthread.php?f=98&t=265993&highlight=wiring+Weight
Any Ideas? Any help would be appreciated.
Looks like your syntax is incorrect. “ikfk_blend” should be the expression string.
-Eric
“ikfk_blend” represents the value of the slider/custom attribute.
The wiring worked when I was using a simple Orient Constraint. But I’m tring to get fancy with a Rotation List Controller. I have no problem manually wiring the Weights of the List Controller, I just can’t seem to get the syntax right with MaxScript.
$.rotation.controller.weights[1] is what you need to wire it to, where the [1] is the index number of the controller on the list you want to wire the weight of.
For example, if you have two controllers in the list and you want to wire the second weight, it would be:
paramwire.connect $blah blah.parameter $foo.rotation.controller.weights[2] “parameter”
:¬)
Thank you so much! I can’t believe all I needed to do was make “weight” plural. Here thought showProperties showed me everything. Although, to be fair, if the Listener had given me something useful, I wouldn’t have wasted so much time.
BTW, Brad,…v2.26 best rig ever…
Sorry about that Juan. Looks like Brad got you all sorted out.
-Eric
for wiring quite prefer the use of number, let me explain.
you can got $.rotation.controller.weights[1]
or $[3][2][4][1] ,that will be the same.
example a object with rotation with float list and two xyz
the first [3] is the transform the second [2] rotation ([3][1] will be position. [3][3] will be scale)
[3][2][1] first xyz
[3][2][2] second xyz
[3][2][3] avaible
[3][2][4] weights
[3][2][4][1] weight first xyz
[3][2][4][1] weight second xyz
with number is much quicker to write them instead of long $.rotation.controller.weights[1]
and very easy to find each controller just really easy to sea the hierarchy of the controller equal to the trackview