Canvas

These nodes will use values based on the canvas and your position in it.

Coordinates

../../../_images/odysseybrush-nodes-get-canvas-getxy.png

Get X” and “Get Y” are Floats that use the position of your stylus / mouse in the canvas. Basically, these nodes are connected to X and Y input in your Stamp.

../../../_images/odysseybrush-nodes-get-canvas-getxy-example.png

Canvas

Dimension

../../../_images/odysseybrush-nodes-get-canvas-getcanvas-canvas.png

Get Canvas Height” and “Get Canvas Width” are Integers that take the size of your canvas in pixels. They can be really useful when, for instance, you need to stamp a brush in the middle of your canvas.

How to apply a stamp in the center of your canvas:

  • add “Get Canvas Height” and “Get Canvas Width

  • add 2 “Divide” nodes and enter the value 2

  • connect “Get Canvas Height” and “Get Canvas Width” to each “Divide” node

  • connect the result respectively to input Y and X in a Stamp node.

../../../_images/odysseybrush-nodes-get-canvas-getcanvas-example.png

Channel Depth

../../../_images/odysseybrush-nodes-get-canvas-getchannel.png

Get Canvas Channel Depth” returns an EOdyssey Channel Depth Enum.

Color Model

../../../_images/odysseybrush-nodes-get-canvas-getcolormodel.png

GetCanvas Color Model” returns an EOdyssey Color Model Enum.

Rectangle

../../../_images/odysseybrush-nodes-get-canvas-getrectangle.png

Get Canvas Rectangle” returns an Odyssey Rectangle Structure.

Viewport

There are 3 nodes that can affect the stroke, depending on actions made in the Viewport:

  • Get Viewport Pan

  • Get Viewport Zoom

  • Get Viewport Rotation

../../../_images/odysseybrush-nodes-get-viewport-pan.png

Get Viewport Pan” takes the X and Y values of the pan made with the short P and gives a result as a Vector 2D Structure. As an example, it can be used to modify the Odyssey Pivot point:

../../../_images/odysseybrush-nodes-get-viewport-pan-blueprint.png ../../../_images/odysseybrush-nodes-get-viewport-pan-result.gif

Get Viewport Rotation” & “Get Viewport Zoom” will respectively send float values related to the rotation angle and the zoom ratio, which can be found at the bottom of the Viewport:

../../../_images/odysseybrush-nodes-get-viewport-rotation-zoom.png ../../../_images/odysseybrush-nodes-get-viewport-rotation-zoom-viewport.png

As an example, connect “Get Viewport Rotation” to the angle and “Get Viewport Zoom” to the size will give the impression that your brush always adapt to the viewport to look the same to the user’s eyes.

../../../_images/odysseybrush-nodes-get-viewport-rotation-zoom-blueprint.png ../../../_images/odysseybrush-nodes-get-viewport-rotation-zoom-result.gif