[Blender] Free addon: Dynamic Parent

Sdílet
Vložit
  • čas přidán 29. 08. 2024

Komentáře • 75

  • @kalleblomkvist7667
    @kalleblomkvist7667 Před 9 měsíci +5

    Thx for the tut on the really nice and useful Dynamic Parent addon!
    Until this addon is officially updated, here is a hotfix that works at least for 4.1 alpha :)
    for win 11
    Edit the dynamic_parent.py that is in C:\Users\yourusername\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons
    Find the two following two lines! This one now only takes 1-2 args, instead of 1-3
    bpy.ops.constraint.childof_set_inverse(C, constraint=last_constraint.name, owner='OBJECT')
    bpy.ops.constraint.childof_set_inverse(C, constraint=last_constraint.name, owner='BONE')
    to (Just remove the first argument "C" in each)
    bpy.ops.constraint.childof_set_inverse(constraint=last_constraint.name, owner='OBJECT')
    bpy.ops.constraint.childof_set_inverse(constraint=last_constraint.name, owner='BONE')
    Save and then restart Blender

    • @CGDive
      @CGDive  Před 9 měsíci +2

      Thanks, pinned!

    • @kalleblomkvist7667
      @kalleblomkvist7667 Před 9 měsíci +2

      Happy to help out a tiny bit when possible, cheers!

    • @henonicks
      @henonicks Před 4 měsíci

      What exactly does this fix?

    • @kalleblomkvist7667
      @kalleblomkvist7667 Před 4 měsíci +1

      I am no coder, but at the time, those small changes made the addon work :)
      I guess Blender changed the arguments required for that command for 4.0 and newer, and "broke" addons using it.
      Now it's not needed, as the addon is now officially updated, 6th of december 2023, with exactly those line fixes!

  • @BarrettSmithBB
    @BarrettSmithBB Před 11 měsíci +20

    I use this addon ALL the time, absolute necessity when animating. A few tips I've learned while using it:
    1. Parenting is opposite of default blender, that is, you must select the Parent object THEN child object. Default blender is opposite.
    2. If you pickup the object multiple times with the same parent, you want to make multiple dynamic parents, instead of keyframing the influence on/off of a single constraint.
    3. The default keyframe type is Bezier and auto clamped. setting them to Constant will help with drifitng issues.
    4. When you're using with a rig, handing the same object off between (eg hands), can give the "select two objects" error. You may need to use an intermediatary empty, or a manual child of constraint.
    Other than those small caveats it's a great add-on!

    • @CGDive
      @CGDive  Před 11 měsíci +3

      Perfect, thanks!

    • @binyaminbass
      @binyaminbass Před 6 měsíci +6

      I am using the new update, 2.0.1, for Blender 4.0. It seems #2 now happens automatically and #4 is not longer an issue. Hooray!

  • @juliocargnin
    @juliocargnin Před 11 měsíci +5

    In our studio we developed our own method for these situations without 3rd parties by building all the desirable slots in the metarig itself. Our philosophy is “Every animation data should flawlessly work anytime a rig is regenerated”. And “animators should never create/delete constraints on top of the control rigs (but always key them when interacted with)”. We also found that using booleans for the parent switch on the custom property are safer than integers or floats, specially when there are multiple slots, to avoid motion-blur artefacts due to the linear nature of these properties. (I.e you can’t switch from slot 2 to 5 without passing trough the intermediates. Even from one frame to another as subframes are a thing in motion blur). Where as Booleans are parallel allowing arbitrarily switch directly to any slot without motion-blur artefacts.

  • @cgartistbox
    @cgartistbox Před 11 měsíci +4

    This should be a native tool in Blender. It saved my life a few times :)

  • @sottozen
    @sottozen Před 11 měsíci +2

    What a relief! I thought, after years, I was the only one who didn't get how "child of" works! Thanks for this!

    • @CGDive
      @CGDive  Před 11 měsíci +2

      On the surface, it seems like such a nice, little, innocent and simple constraint. But once you start using it, hair pulling is guaranteed :D

    • @sottozen
      @sottozen Před 11 měsíci +1

      @@CGDive Ah-ha, you're absolutely right!

  • @thenodecamp
    @thenodecamp Před 11 měsíci +2

    Basically, this addon does something I've been doing before manually. Use child of to attach an object, then when you want to turn it off, do a quick bake and remove constrains, copy the keyframe, undo the bake, put influence on 0, and paste the keyframe. It's a huge time saver of an addon

  • @BennXdesign
    @BennXdesign Před 8 měsíci +2

    I can't believe we NEED to rely on an addon to do this VERY BASIC thing! in any case, thanks a lot for the addon maker, this is a godsend.

    • @Damian_h
      @Damian_h Před 3 měsíci

      yea specially the last part where he explains due to a Blender limitation the add on dev cant really make a use of old contrains which is kinda bad when it comes to optimization no matter what they say stacking stuff is no good.

  • @TINJ_
    @TINJ_ Před 11 měsíci +4

    It's simple to avoid the issue you ran into without the addon. Keyframe the object on the frame before it's picked up/dropped and right after. You'll forget a few times but that's what you have to do.

    • @CGDive
      @CGDive  Před 11 měsíci +1

      Can you share the exact workflow, step by step? I tried hard but can't wrap my head around it.

    • @CGDive
      @CGDive  Před 11 měsíci +3

      I managed to do. Keyframing and using constant interpolation worked for me. Still prefer the addon tho :)

  • @IoanBracau
    @IoanBracau Před 11 měsíci +3

    I remember trying to do this the normal way and being so frustrated. Im so happy this exists!

  • @Valkinsenn
    @Valkinsenn Před 5 měsíci +1

    As someone looking to do first person animations for a passion project of mine (or just animations in general), this is a _big deal._ Blender's standard Child Of constraint drives me absolutely _bananas,_ so having something like this in my arsenal will be a _huge_ boon, for real.

  • @SnivyO.O
    @SnivyO.O Před 11 měsíci +3

    Very simple yet an extremely helpful addon! Thank you for your showcase, this will definitely save a lot of time during the animating process!

    • @CGDive
      @CGDive  Před 11 měsíci +1

      You're very welcome!

  • @ShienlanMiitsues
    @ShienlanMiitsues Před 9 měsíci +4

    3:37 This sentiment is too relatable XD

    • @CGDive
      @CGDive  Před 9 měsíci +3

      I know, right?

  • @AutodidactAnimotions
    @AutodidactAnimotions Před 11 měsíci +1

    I have had this add-on for over a year but never figured out the parenting process with a control rig like rigify or ARP
    thanks for this tutorial.😁

    • @CGDive
      @CGDive  Před 11 měsíci

      Fantastic!

    • @ugu8963
      @ugu8963 Před 11 měsíci +2

      When you see it, it all seems so simple 😀

  • @jaewonseo2132
    @jaewonseo2132 Před 6 měsíci +1

    holy mother of gods... god bless you and the legend who made that addon

    • @CGDive
      @CGDive  Před 6 měsíci +1

      Cheers, mate!

  • @watchmeanimateYT
    @watchmeanimateYT Před 10 měsíci +1

    superb video explaining the issues including & the perfect complex rig demo to showcase this GEM of an addon!!

  • @jakejake6029
    @jakejake6029 Před 10 měsíci +1

    as always you give the community the best add on

  • @binyaminbass
    @binyaminbass Před 6 měsíci

    I had to dig into stack exchange to find how the manual method works:
    When turning off the child of constraint:
    1. Key location of Child Object
    2. Key Contraint Influence at 1.00
    3. Move forward one frame.
    4. Apply Visual Transform of Child Object (This is the secret!)
    5. Key Location of Child Object
    6. Set Constraint Influence to 0.00 and Key it.

  • @BennXdesign
    @BennXdesign Před 8 měsíci +1

    there is still a problem though : if you want to edit the position of a parent after baking all your chain of child-parents, well... you can't. You will have to unkeyframe everything, delete all the child of constraints, then restart from the start (or at least from the point you edited a position). just sliding keyframe works though.
    another problem (fixable): during a parent switch, the child will revert to its original position, then return to it's place. as it happens between 2 keyframes, you won't notice it, but you definitively will if you render the animation with motion blur! the part will disappear for a frame. you can see the between frame movement of the child by engaging the subframes. The fix is to disable the snap to keyframe, then squeeze the child of constraint keyframe as much as possible in the between frame space, and if it is beyond the motion blur setting frame, the motion blur won't pick it. you can also just disable the motion blur (at least for the problematic frame).

  • @rexwinz
    @rexwinz Před 11 měsíci +2

    Awesome thank you❤

  • @TheJackFoley
    @TheJackFoley Před 8 měsíci +2

    Addon is now officially updated for Blender 4. I had missed it so much that I went back to Blender 3.6.5!

  • @genesis-9183
    @genesis-9183 Před 7 měsíci +1

    Please make a video about how to attach cloth to animated body and make cloth animated as well.

  • @HorganInnovation
    @HorganInnovation Před 7 měsíci +1

    Thank you for all the great tutorials! I'm trying to have my Rigified character pick up an item (two parented parts) that, unlike your knife, was never a part of the character model. However, in your video, you have the character rig IK bone parented to the IK bone of an object (the gun). I added a single armature bone to my two-part object and parented the object (child) to the bone (parent), but I couldn't generate a rig. You mentioned in your video that Dynamic Parent only works with IK bones. My question is, how do I give my two-part object to be picked up, an IK bone? What am I missing here?

  • @philosophyfrog2653
    @philosophyfrog2653 Před 7 měsíci +1

    I'm using 4.0 Bones deform strangely in pose mode when trying to attach one bone to another using this addon. The prop bone is separated. Any thoughts on what could be causing this or is the addon simple not up to date?

  • @marcosramirez3609
    @marcosramirez3609 Před 11 měsíci +2

    good video

    • @CGDive
      @CGDive  Před 11 měsíci +3

      Glad you enjoyed it!

  • @malbo-
    @malbo- Před měsícem

    Hello, great tutorial, I have a question. If I export an fbx with multiple meshes (a character model and a sword model) using this add-on, will it work fine with the sword properly attached to the hand if I export into unity? I've had trouble using default child of constraints in unity

  • @user-uo1ld9pr2u
    @user-uo1ld9pr2u Před 11 měsíci +1

    нужная инфа спасибо автору

  • @AdmDi
    @AdmDi Před měsícem

    Maybe I'll discover that later, but, what is the problem of using "Child of" instead? It can be animated... But maybe I will discover that later.

    • @CGDive
      @CGDive  Před měsícem

      Did you watch the first part of the video? I can't show you the problem with ChildOf any more clearly. If it works for you, great. But I want to punch myself in face anytime I try to do anything complex with it.

  • @alexwestphal9515
    @alexwestphal9515 Před 11 měsíci +1

    i wonder if theres a way to work it with a rigid body sphere.. to animate throwing a ball or something that bounces after

    • @CGDive
      @CGDive  Před 11 měsíci +2

      It can. You don't even need the addon unless there is complex change of parents needed.
      You just want to have the rigid body parented to the hand (using Child of) while it does the "throwing animation" and enable the Animated option for the Rigid body. Then as the hand releases the body, disable the Child of and also make the Animated option goes from On to Off within 1 keyframe. Not sure if that makes sense but it does work :)

  • @TheJackFoley
    @TheJackFoley Před 9 měsíci +1

    Love this addon but it doesn't seen to work in Blender 4.

    • @CGDive
      @CGDive  Před 9 měsíci +1

      I'm sure it will be updated in due time.

  • @Blaharator
    @Blaharator Před 11 měsíci +4

    Would this animation work after exporting to fbx? Can you recommend an easy way to bake this animation so that the gun keeps working ?

    • @CGDive
      @CGDive  Před 11 měsíci +5

      Excellent question. I should have covered this.
      Yes, you can bake it. The addon itself has a bake option. Below Create and Disable, there is a drop down menu. You have to have all controls that are involved in the animation selected and choose "Bake and clear".
      Or you can only select the dynamic bone (the pistol in this example) and do a manual Bake Action. Enable:
      -only selected bones
      -Visual Keying
      -Clear constraints
      -Overwrite current action.
      As for exporting to a game engine, this has more to do with following a proper workflow for that purpose. My workflows are here
      czcams.com/play/PLdcL5aF8ZcJvCyqWeCBYVGKbQgrQngen3.html

    • @ugu8963
      @ugu8963 Před 11 měsíci +1

      @@CGDive Would you be so kind as to add a little addendum to the video to demonstrate the baking options in the addon ? Great stuff, I was hoping for something like that

    • @CGDive
      @CGDive  Před 11 měsíci +1

      @@ugu8963 I guess I could make an additional video. Really wish YT would let you edit or replace a video. But of course it's obvious wht they don't allow it.

    • @ugu8963
      @ugu8963 Před 11 měsíci +1

      @@CGDive BTW, would the "bake action" of GRT take care of the baking of those constraints automatically ?

    • @CGDive
      @CGDive  Před 11 měsíci +1

      @@ugu8963 yeah, it should because it bakes the Game rig which is just constrained to the Control rig.

  • @attachaiarrayayarn8219
    @attachaiarrayayarn8219 Před 3 měsíci

    THX 😍😍

    • @CGDive
      @CGDive  Před 3 měsíci

      You're welcome!

  • @subhaskhalkho2059
    @subhaskhalkho2059 Před 10 měsíci +1

    Blender addon install but not showing addon . Please help

    • @CGDive
      @CGDive  Před 10 měsíci +1

      I don't know why, sorry 😞

  • @myrminki
    @myrminki Před 11 měsíci +1

    Holy cow

  • @maulviA99
    @maulviA99 Před 9 měsíci +1

    why is not support on blender 4.0?

    • @CGDive
      @CGDive  Před 9 měsíci +1

      I haven't tested it but many addons break when a new blender version is released. It will be fixed later.

    • @halilkunge9295
      @halilkunge9295 Před 16 dny

      @@CGDive It has been updated to work in blender 4+.
      Just tested it in 4.2 and it works fine.

  • @Bigsperg
    @Bigsperg Před 7 měsíci +1

    So, the constraints are only attached to the animation or on the overall rig?

    • @CGDive
      @CGDive  Před 7 měsíci +2

      Constraints are "attached" to bones.

  • @mukhlisinbagol1105
    @mukhlisinbagol1105 Před měsícem

    can we make spiderman hook rope with this addon?

    • @CGDive
      @CGDive  Před měsícem

      I don't think it's designed for that but I guess it could be part of a solution for the effect you are looking for.

  • @PCMTTOPPER
    @PCMTTOPPER Před 11 měsíci +1

    You are great 👍 bro
    But why are you making these simple tutorials

    • @CGDive
      @CGDive  Před 11 měsíci +3

      That's a good question. I've been thinking a lot about what kind of videos to make.
      To your question, I don't think it's that straightforward. What's simple to you is not simple to everyone. So I think this is useful to some people.
      But there are other influences as well. As the channel grows I feel pressured to keep delivering videos at regular intervals. So often I pick some low-hanging fruit that I believe would be useful but won't be too hard to make. This is something I am not that happy about and I am trying to come up with ways to change things.
      What kind of tuts would you like me to make? I would appreciate the feedback!

    • @PCMTTOPPER
      @PCMTTOPPER Před 11 měsíci

      @@CGDive attractive character making like "indianimation" or can you make attractive attractive character using cg cookie flex rig
      I don't want to spend too much time on making character
      So what can I do please suggest

    • @ugu8963
      @ugu8963 Před 11 měsíci +2

      @@CGDive I think those simple fundamental tutorials are a blessing to get into blender animation. This is such a dark forest otherwise.

  • @TheConarai
    @TheConarai Před 9 měsíci +1

    The manual method was a few more steps, he made the manual method look like a headache. Not worth the money, sorry

    • @CGDive
      @CGDive  Před 9 měsíci +6

      hahahahahah, this is the funniest comment ever. Tell me you didn't watch the video without telling me you didn't.
      1. the manual technique IS a pain and I couldn't even get it to work
      2. This is a FREE addon... definitely worth "the money" if you ask me!