Hiding roto spline overlay?

Is there a way to turn off the spline overlay and show control points only?
The spline curves cover up the edge and make it difficult to precisely see the effect of a mask.

@georgedei No, not at the current time. I’ll add a feature request for this.

In the meantime, you may find using Shift-A to toggle the alpha overlay on without the spline overlay useful.

You can do this by writing some custom Python that fiddles with the opacity of the shape outline color. Take a look in resources/scripts/keybinds.py and look at the code for “template mode”. It does something similar.

I’ll give it a try.
I see in the script:
fx.prefs[shape.templateColor]
would I use
fx.prefs[shape.Color]
instead?

What is Template Mode?
I didn’t find much about it in the manual.

@georgedei Our scripting expert will have an answer for you tomorrow.

You would change the “shape.color” preference, yes.
Template mode was an old hack that goes far back in the mists of time, and doesn’t appear to even be hooked up anymore. Feel free to just change “toggleTemplateMode” to change shape.color how you like, and using the existing Shift+w bind.

Template mode does work. Pressing Shift-W sets the color and opacity of unselected shapes as specified by the Shape > Template Color and Opacity preferences. When the opacity of a shape has been animated and the shape is unselected, the shape will disappear at 0 opacity.

fx.prefs[“shape.Color”] = fx.Color(0,1,0,0)
and
fx.prefs[“shape.templateColor”] = fx.Color(0,1,0,0)

tried both of these changes, the idea is that it would make the shape outline transparent
But nothing happens, probably obsolete legacy stuff…

The shape color preference is “shape.color”. (lower-case)

Thanks Paul,
that one works, but unfortunately it also turns off the control points. So the entire shape is invisble.

Anyways, I found “hide hulls during edit” in the prefs - that works for me.

I figured out what the problem here is. Silhouette won’t draw any part of the shape if the effective opacity of the outline is 0. So if you set the shape.color pref to have an alpha of 0.1 instead, it’ll do exactly what you want.

here is the code that works:

  • could you tell me the variable for the hulls, so I can hide them also

comment hide shape

hideshape = False
fx.prefs[“shape.color”] = fx.Color(0, 1, 0, 0.6)
comment fx.prefs[“shape.hulls”] = fx.Color(0, 1, 1, 0.3)

def toggleHideShape():
global hideshape

hideshape = not hideshape
if hideshape:
    fx.prefs["shape.color"] = fx.Color(0, 1, 0, 0.01)

comment fx.prefs[“shape.hulls”] = fx.Color(0, 1, 1, 0.01)

else:
    fx.prefs["shape.color"] = fx.Color(0, 1, 0, 0.6)

comment fx.prefs[“shape.hulls”] = fx.Color(0, 1, 1, 0.3)

fx.bind(“Shift+w”, toggleHideShape)

shape.hullColor is what you want.

You can get a list of all of the preference IDs by printing fx.prefs.keys().