Notifications
Clear all

[Closed] small problem

Ok, so I have an object with multiple custom attributes sliders (these were not scripted, just added with the parameter editor) and I want to add one more that always shows the total sum of the values of all of the other sliders. It doesn’t need to be a scripted method because it only needs to be done once to one object…although I’d prefer to find some method of automating it, just in case. I tried a few things invloving script controllers, but I couldn’t get the final “sum” attribute to update in real time as the other sliders changed value. Any suggestions?

2 Replies

It doesn’t update in real-time because the script isn’t referencing them correctly.

If you add the custom attributes to the script controller as varaibles (as a track). Then it should update correctly when those parameters change.

I tried that, but kept getting circular dependency errors. But, I realized I have controllers assigned to all of those custom attributes. So, when I assigned the controllers to variables and it worked great. Thanks for the tip.