4
$\begingroup$

It seems the Copy to selected option is not available in the Movie clip editor.

Is it possible to copy tracker settings from the active tracker to selected trackers? If so, how?

$\endgroup$
  • $\begingroup$ Are trackers pydata? Seems like you should/might be able to iterate and manually copy the "settings" you want. $\endgroup$ – wchargin Nov 5 '13 at 4:20
  • $\begingroup$ @WChargin Sure enough, they are. Thanks :) $\endgroup$ – gandalf3 Nov 5 '13 at 22:34
2
$\begingroup$

You can use the following script to copy a given set of properties from the active tracking marker to the selected markers.

Paste this into a text editor, modify the values at the top, and press Run Script to run it.

############################################################
# Define your constants here                               #
to_set   = ('color', 'hide')  # list of properties to set  #
mc_name  = 'SomeMovie.mp4'    # name of movie clip         #
obj_name = 'Camera'           # name of track              #
############################################################

clips  = bpy.data.movieclips
clip = clips[mc_name]
obj = clip.tracking.objects[obj_name]
tracks = obj.tracks

# find the active track
active = tracks.active

# define a set of attributes to change
new_values = { k : getattr(active, k) for k in to_set }

# loop through and assign
for track in tracks:
  if not track.select:
      continue
  for k, v in new_values.items():
    setattr(track, k, v)

You can use this API page to find the names of the properties you want to set.

$\endgroup$

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.