I added a lightsaber (with motion tracking) in Blender with a video of myself. I remove the lightsaber from my pocket near the end of the video. How can I make the lightsaber invisible until then? Thanks.

  • $\begingroup$ could you share the video $\endgroup$
    – Nils Eisen
    Jan 18 '17 at 3:25
  • $\begingroup$ I just need to have no lightsaber, then a growing lightsaber, then my lightsaber that's moving. $\endgroup$ Jan 18 '17 at 3:26
  • $\begingroup$ Are you using a 3d model for the sabre $\endgroup$
    – Nils Eisen
    Jan 18 '17 at 3:41
  • $\begingroup$ yes, and it moves with the sabre handle too. $\endgroup$ Jan 18 '17 at 3:56

There are two methods that this could be done with:

Movie Clip Editor and Compositor:

  1. Add your footage to the Movie Clip Editor
  2. Mask the area around the Light Sabre at the time you don't want it
  3. Use the Mask node in the compositor to remove the light sabre

Section on animating masks from the Blender Documentation (Link). There are also many good tutorials on this.

Animating Masks can be driven over the time so that they follow some object from the footage, e.g. a running actor. This animation can be done in several ways:

Control points can be parented to motion tracks. This way is the main way to interact with masks in a motion tracking workflow. Keyframe animation of control points using a shape keying system. This can be useful when there are not enough good feature points to track in the footage, or the mask is not based on footage. For animation more complex mask shapes, it is also possible to do more high level animation:

Splines and mask layers can be animated as a whole, instead of individual control points.

Masks can be parented to motion tracking data. Works for both individual mask point parenting and for overall spline. To select motion track to be parented to use Ctrl-RMB. To parent selected mask points to active motion track use Ctrl-P. Mask animation timing can be edited from the Dope Sheet. Here there is a mask mode where mask keyframes can be selected and edited.

Animating the appearence of the 3D Model:

  1. Open the Outliner and locate your light sabre object
  2. Next to its name you will see an eye and camera
  3. Animate appearence by using the keyframe shortcut I and keyframe it to the time it should be seen or hidden. This is done by hovering over the symbol (eye or camera), to hide the object click on the icons and they will become greyed out and your object should disappear.

Make sure you animate both the eye and the camera, this is beacuse the eye only hides its appearence in the viewport but will still be visible in the render.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.