[Closed] Problem with spinners in modifier with animation layers
Hi. I’m writing a script that manages only a few data in modifier (bend modifier) that is placed on a spline object. I had hard times to figure out some strange behaviour with my script and then after lot of testing it seems to be down to a problem that’s easiest to describe on “manual” example.
So, after creating a spline and placing bend modifier on it, I have to assign linear or bezier controller to the angle track so that layers are created at all. Then if I enable the layers, create a new one, set the angle to let’s say +100, then create new layer and try to pull the spinner to -100 I can see that the spinner value “jumps” between what seems to be a value from previous layer and the value I’m setting up. When setting up the value via maxscript, this seems to result in previous layer value + the one I’m trying to set from the script. I tried probably all the combinations of animation layer settings (like mute layer above, creating new layer only with basic layer enabled with zeroed out values, not affecting the overall output track by layers…), but nothing seems to help.
Any idea what is happening here and how to avoid this?
Thanks for any help
i couldn’t get an issue. it needs a snippet that demonstrates the problem. my guess is you do something wrong, but there is no way to say what’s exactly.
Sorry for a missing example. In the attachment there is a simplest example I could come up with. Following stuff is confusing me (more so because I tend to write scripts only once in a while, so often forgot a lot):
1.) select the spline and just change the angle value on the bend modifier – you should see how it jumps to 90 degrees and generally spinner acts weirdly
2.) if you try $.bend.angle = 90 it will result in bend being 180 degrees
3.) now I found out if I do $.bend.angle.controller[3].value = 90 it will work correctly
I’m getting a feeling that I may be missing some core concept with animation tracks, controllers, animation layers…