Notifications
Clear all

[Closed] Adding a Controller to the Weights inside a List Controller?

Hey again,

after my first issue was solved by Mambo4 so quickly (thanks for that again!) i have another issue i dont find a solution for right now.

I want to add a controller to the weight of another controller in a List Controller with Maxscript.

I have no luck so far. If i add a controller to the weight of another controller inside the Curve Editor everythings fine. I can do that and it is also added. When having the listener active it outputs a line like this:

$Sphere001.modifiers[#Face_Extrude].amount.controller.weight.controller = Noise_float ()
 

I added this controller on the Weight of a Float_Wire that is actually connected to the Amount-Parameter of a Face Extrude Modifier. And this is already strange: In the line above where is this weight mentioned? I only see weight in general but to my logic it must know to which weight it actually has to assign it, mustnt it?

And if i now paste exactly this line for another Object, everythings fine, but no controller is added to any weights at all. I need the controller in the weights though to create a better motion and on my real thing there are over 1300 objects there this has to be done

Do you know whats wrong here? How can i achieve this? How can i add a controller to the weight of another controller inside a List with maxscript?

Many thanks for your help again!
subb

2 Replies
 JHN

It’s usually something like

controller.weights[1].controller = yourcontroller

Hope it helps,
Johan

thank you JHN. in the meantime Mambo4 and denisT already helped me out with this in my first thread here: http://forums.cgsociety.org/showthread.php?f=98&t=1321995

but still thanks for the input. one cannot get enough info on maxscript if he/she isnt really that much into scripting