Results 1 to 7 of 7

Thread: Hard object at end of bone chain?

  1. #1
    digital witchdoctor objuan's Avatar
    Join Date
    Nov 2003
    Location
    Denver, CO
    Posts
    533

    Hard object at end of bone chain?

    I have a cable that I want to distort with bones, but the plug at the end of the cable should move and orient with the bones, but stay rigid and undeformed. I added bones to the cable object, and then parented the plug to the last bone. The plug is getting distorted as well as moving with the bones.

    How do I keep the plug solid, while moving and rotating with the bones?

    (This is just for several stills, I don't have any IK or anything fancy, just want to FK pose the bones in a couple different positions, without squashing the plug...)
    Ocean Byrne
    humble pixel farmer
    www.moceandesigns.com

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,993
    Weight map can inform LW which bones modify object vertexes. If just one bone is modifying some object, it should not be distorted.
    So set up weight map 100%, for one bone, and all the others to 0%.

  3. #3
    skeptic lertola2's Avatar
    Join Date
    Dec 2008
    Location
    New York City
    Posts
    1,146
    You could make the plug end a separate layer and just parent it to the last bone.

  4. #4
    digital witchdoctor objuan's Avatar
    Join Date
    Nov 2003
    Location
    Denver, CO
    Posts
    533
    Quote Originally Posted by lertola2 View Post
    You could make the plug end a separate layer and just parent it to the last bone.
    That is how it is setup. The end is separate and parented, but it is getting wonky.
    Ocean Byrne
    humble pixel farmer
    www.moceandesigns.com

  5. #5
    digital witchdoctor objuan's Avatar
    Join Date
    Nov 2003
    Location
    Denver, CO
    Posts
    533
    I think it is because I tried to cheat the length of the cord by scaling one of the first bones to be .5 on Z, and then scaling one of the last bones to be 2.0 on Z. This works fine and keeps the plug the right size if the bones stay pretty straight, but if they get curvy the plug gets distorted - which is a bummer because I thought it was a good way to adjust the length of my cord.

    Any other suggestions on adjusting my cord length? I'm hoping to duplicate the same hierarchy several times, and be able to make some cords longer than others (while all the plugs stay the same...)
    Ocean Byrne
    humble pixel farmer
    www.moceandesigns.com

  6. #6
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,739
    Yeah: if a parent or grandparent is being scaled up the bone chain, that's what you're interpreting as distortion, ie scaling.

    Rather than parenting, use Motion Panel/Controllers and Limits/Position SAME AS ITEM constraints on your XYZ coordinates, in World mode I guess. Note that the plug will not rotate with the Bone at all, unless you do the same with Rotation etc etc blah blah blah.... if you only use Position, it will only "inherit" the Bone's position.

    Or: Using Same As Item (SAI) on Position AND Rotation AND Scale is equivalent to Parenting/Childing. But using the Controllers (aka "constraints") allow you to turn off any/all channels of "inheritance"-- it's like Parenting on steroids.

    BTW, note that since there is an envelope for Interpolation, you can smoothly slide constrained items from their own keyframed positions to their constrained positions etc etc blah blah blah.... So landing a birdy on a character's hand is easy.
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  7. #7
    Registered User Oldcode's Avatar
    Join Date
    Jan 2004
    Location
    Boston
    Posts
    456
    Objuan,

    I'm doing something very similar and have the same issue. Instead of parenting the plug to the last bone, what I did was add the plug to the cable object in the same layer. When I add bones, I start the bones at the plug end of the cable and make the first bone the exact length of the plug, then add my first child bone. Adjust the size of that child bone to make it the size needed to properly distort the cable (usually making it smaller than the plug bone), then add as many child bones as needed.

    When that first bone for the plug moves and bends, the plug geometry will move with it but not be distorted. I would then use Spline Control to move the rest of the bones to control the movement of the cable. This will mean working backwards from what you're doing I think, but I've used this method before and have gotten good results.

    Good luck,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •