Modifier Tools – Script

by - 2012/04/16 16 Comments Development, Production

One of the things we learned from the kickoff project was that animating the parameters of modifiers for a bunch of objects can be very, very time consuming. So we asked Sergey if he could make a button that copied the animated parameters of the actively selected object to the whole selection. 5 minutes later he had fully working feature that did exactly that :)

And here it is!: ModifierTools.py

In the image above you can see an example of how I am using the script to make fractured shards look more organic (less straight). This is good for mid ground fragments.

So this is how the tool works:

1. First, install it like you would any addon. Then activate it under UserPrefereces/Addons/Object/Modifier tools.

2. Select all the objects, make sure that they all have the modifiers that you want them to have. Do all the animation of the modifier parameters on the actively selected object, then press the “Copy Modifier Settings”. You’ll find it either by pressing spacebar and then typing “Copy Modifier Settings” or just use the button in the toolbar).

3. The result should be that all the modifiers for all the selected objects should have animation to them.

Quick disclaimer: This is a typical production tool. At the moment this is not officially supported, so there is no bug tracker for it.

I hope you find it useful.

  1. 3pointedit says:

    Is the copy of the animated modifier a snapshot in time or do they have related f-curves? That is, are all copies independent?

  2. kjartan says:

    all copies are independent because the fragments have to have their own location and rotation keys baked from the dynamics. if you only need animation on modifiers then you can use ctrl+l to copy the animation data and that should be shared. but it only works on static objects.

  3. n-pigeon says:

    Nice, it should be one of default operators in the menu.

  4. Christoph Pöhler aka Dracio says:

    Very cool
    it fixs the littel missfits and this make it work

    a huge job

  5. blendercomp says:

    Trunk!

  6. bydesign says:

    The large version of the second image appears to be linked to the wrong image.

  7. jachristie79 says:

    Sergey and has to have a code ninja at his disposal

  8. mastermind says:

    woooww loooksss aweosome!! tutorial?

  9. Shrinidhi Rao says:

    naaaaaaaaaaiceeeeeee :) .. and is there a way to apply a modifier to a bunch of objects at once?

    • kjartan says:

      Sure. Just do a convert to mesh (hotkey is alt+c, or something like that). That applies all the modifiers on your objects.

      • JoshC says:

        I think he means adding the same modifier to multiple objects simultaneously rather than applying the existing modifiers to objects.

        • JoshC says:

          If that is the case then you want to:

          1. Add a modifier to “Object A” set it up how you want,
          2. Select all objects you want to apply the modifier to, being sure to select “Object A” last
          3. In the 3D viewport hit “Ctrl+L” then select “Modifiers” in the dropdown list.

          Note that this will add all of Object A’s modifiers to all objects in the group.

        • kjartan says:

          Right. Applying a modifier usually means pressing the “Apply” button on a modifier in the modifier panel, so i was a bit confused by that.
          I should have mentioned the “Make Links/Modifier” with ctrl+l in the post itself. In most cases ctrl+l is all you need when working with multiple objects and their modifiers. This script is mostly just useful to copy over animation between modifiers.

  10. Shane says:

    Personally I would add checkboxes or separate buttons to determine what gets copied, one for all modifier settings, one for just animated settings …. Maybe even a popup menu to choose between one or all modifiers.

  11. Pyroevil says:

    The best thing for that is the “Multiple editing” and I just know Softimage XSI doing it right and everywhere ( I know Maya and 3Dsmax and it’s not well integrated like that).It’s safe a lot of time. I suggest it on the website BlenderStorm but I don’t know if it’s be considered by someone. It’s can be a really great addition and advantage if this features is integrated to Blender