Skip to content

Instantly share code, notes, and snippets.

@andybak
Created February 9, 2021 12:42
Show Gist options
  • Save andybak/dc420281117ae336a18c1bf3069fc932 to your computer and use it in GitHub Desktop.
Save andybak/dc420281117ae336a18c1bf3069fc932 to your computer and use it in GitHub Desktop.
// Untested Tilt Brush script
// Try running this in a tool script.
// Gleaned from ParametricStrokeCreator.cs and PointerManager.cs
var xfPointer_CS = App.Scene.ActiveCanvas.AsCanvas[rAttachPoint];
ParametricStrokeCreator currentCreator = new CircleCreator(xfPointer_CS);
PointerScript script = PointerManager.m_Instance.MainPointer;
script.CreateNewLine(
App.Scene.ActiveCanvas,
xfPointer_CS,
currentCreator
);
script.SetControlPoint(xfPointer_CS, isKeeper: true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment