Created
February 9, 2021 12:42
-
-
Save andybak/dc420281117ae336a18c1bf3069fc932 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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