Jump to content

Hey

please be considerate and disable AD blocker when you are on the C4D Cafe, because it helps us run this forum. We minimalized showing of the AD's all across the forums, so please, be so kind and at least help us by having AD blocker turned off. 

Cinema 4D Plugins

Archived

This topic is now archived and is closed to further replies.

Jagberg

Swinging Lightbulb

Recommended Posts

Jagberg    0
  • Topic Author
  • Hi everybody!

    I'm kind of stuck here...

    I want to make a lightbulb that swings on the end of a wire.

    The wire I've done with spline dynamics, but how do I attach the lightbulb object to the end of the wire so that it follows the motion?

    TIA

    Erik

    Share this post


    Link to post
    Share on other sites

    Rantin Al    1

    Here's a simple XPresso set up.

    The spline's second point (Index1) position is fed to the sphere position.

    When the end point moves, the bulb will follow.

    HTH. Cheers, Alan.

    Share this post


    Link to post
    Share on other sites
    Jagberg    0
  • Topic Author
  • Alan,

    That worked perfectly!

    Now the next challenge:

    What if I also want it to rotate according to the rotation of that vertex?

    There's a challenge for you!

    /Erik

    Share this post


    Link to post
    Share on other sites
    Rantin Al    1

    He-he! Catch me if you can, Erik. :welcome:

    A couple of Constraints and a little dash of COFFEE courtesy of Chris Montesano.

    Move or rotate the 'Move or H-Rotate Me' null.

    Bulb aimed to first spline point.

    Flex spline length fixed.

    Bulb can be rotated in H.

    The XPresso could probably be tidied up a little. Possibly without the Constraint tags but they are easier.

    Anyway, it works. wink.gif

    Cheers, Alan.

    PS. The COFFEE is from the current 3DAttack magazine. Worth getting for this tutorial alone.

    Share this post


    Link to post
    Share on other sites
    HSrdelic    644

    Could not he simply use aim constraint at hidden null attached to desired vertex?

    EDIT:just saw that you want rotate according to vertex :)

    Share this post


    Link to post
    Share on other sites
    Guest
    This topic is now closed to further replies.

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×