Open Brush AsCanvas Notes
AsCanvas[pointer.transform] = foo (where foo is in Canvas space):
Sets pointer transform to foo
RHS convert transform to canvas space TrTransform:
  • TrTransform xf_CS = Coords.AsCanvas[transform]; // Get transform in canvas space, and write to scene.
  • TrTransform rAttachPoint_CS = App.Scene.ActiveCanvas.AsCanvas[InputManager.Brush.Geometry.ToolAttachPoint];
  • m_xfLocal = m_canvas.AsCanvas[transform];
  • TrTransform xf_CS = canvas.AsCanvas[p.m_Script.transform];
  • m_Pointers[i].m_StraightEdgeXf_CS = Coords.AsCanvas[m_Pointers[i].m_Script.transform];
  • var xfPointer_CS = canvas.AsCanvas[script.transform];
  • TrTransform xf_CS = Coords.AsCanvas[TransformForStroke(stroke)];
  • return Coords.AsCanvas[InputManager.m_Instance.GetBrushControllerAttachPoint()].translation;
  • m_vOriginalPos_CS = Coords.AsCanvas[transform].translation;
  • var xf_CS = Coords.AsCanvas[transform];
LHS convert canvas space TrTransform to transform:
  • m_canvas.AsCanvas[transform] = m_xfLocal;
  • canvas.AsCanvas[m_MainPointerData.m_Script.transform] = mainPointerXf_CS;
  • Coords.AsCanvas[transform] = xf_CS;
  • return ChangeBasis(App.Scene.AsScene[xfInput], basis, basisInverse)
  • m_Rotation_SS = App.Scene.AsScene[transform].rotation;
  • CanvasTransformInSceneSpace = App.Scene.AsScene[App.Instance.m_CanvasTransform],
  • m_Transform_SS = App.Scene.AsScene[m_Owner];
  • Vector3 vOwnerEulers_SS = App.Scene.AsScene[m_Owner].rotation.eulerAngles;
  • App.Scene.AsScene[transform] = m_Transform_SS;
Export as PDF
Copy link
Edit on GitHub