Jump to: Board index » General » Fusion

Does Pressure work in Paint node?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

Jinxer

  • Posts: 31
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Does Pressure work in Paint node?

PostSat Oct 09, 2021 11:40 am

How does tablet's Vary Size Pressure setting work in Paint node? I don't see any difference compare to Constant.
Code: Select all
{
   Tools = ordered() {
      Background6 = Background {
         Inputs = {
            GlobalOut = Input { Value = 119, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            UseFrameFormatSettings = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 220, 346.5 } },
      },
      Paint2 = Paint {
         CtrlWZoom = false,
         Inputs = {
            Input = Input {
               SourceOp = "Background6",
               Source = "Output",
            },
            Paint = Input {
               SourceOp = "PolylineStroke2",
               Source = "Out",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 330, 346.5 } },
      },
      PolylineStroke2 = PolylineStroke {
         Points = {
         },
         IsThreaded = false,
         Brushes = {
            "SoftBrush",
            "ImageBrush"
         },
         ApplyModes = { "PaintApplyColor" },
         CtrlWZoom = false,
         Inputs = {
            BrushControls = Input { Value = 1, },
            BrushShape = Input { Value = FuID { "ImageBrush" }, },
            StrokeControls = Input { Value = 1, },
            WriteOnStart = Input {
               SourceOp = "PolylineStroke2Start",
               Source = "Value",
            },
            WriteOnEnd = Input {
               SourceOp = "PolylineStroke2End",
               Source = "Value",
            },
            Polyline = Input {
               Value = Polyline {
                  Points = {
                     { Linear = true, X = -0.179711637487127, Y = 0.192307692307692, RX = 0.100240302094061, RY = -0.00854700854700855 },
                     { X = 0.121009268795057, Y = 0.166666666666667, LX = 0.107106076210093, LY = 0.0604395604395608, RX = -0.0655327168622311, RY = -0.0369798683857507 },
                     { X = 0.0901132852729145, Y = -0.195970695970696, LX = -0.558111447805945, LY = -0.0333560351693444, LZ = -6.83489398123046e-17 }
                  }
               },
            },
            ["ImageBrush.TabletSettings"] = Input { Value = 1, },
            ["ImageBrush.VarySize"] = Input { Value = 1, },
            ["ImageBrush.Brush"] = Input {
               Value = 2,
               UserString1 = "ball_metal",
            },
         },
      },
      PolylineStroke2Start = BezierSpline {
         SplineColor = { Red = 232, Green = 6, Blue = 244 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 39.6666666666667, 0 } },
            [119] = { 0, LH = { 79.3333333333333, 0 } }
         }
      },
      PolylineStroke2End = BezierSpline {
         SplineColor = { Red = 72, Green = 233, Blue = 54 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 96.8, 0 } },
            [119] = { 1, LH = { 33.6, 1 } }
         }
      }
   },
   ActiveTool = "Paint2"
}
Offline

TCP786

  • Posts: 246
  • Joined: Thu Sep 16, 2021 7:05 am
  • Real Name: Cody Predum

Re: Does Pressure work in Paint node?

PostSat Oct 09, 2021 9:17 pm

+1. I was wondering this recently as well.
Offline

Jinxer

  • Posts: 31
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Does Pressure work in Paint node?

PostWed Oct 13, 2021 12:18 pm

Maybe a representative of Blackmagic can comment on this?
Offline
User avatar

Bryan Ray

  • Posts: 2065
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Does Pressure work in Paint node?

PostWed Oct 13, 2021 4:05 pm

I'm not sure what you mean. It works exactly as one would expect for me.

Capture.JPG
Capture.JPG (49.2 KiB) Viewed 1490 times


I'm using a Wacom Intuos 4.
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

Jinxer

  • Posts: 31
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Does Pressure work in Paint node?

PostThu Oct 14, 2021 2:25 pm

Is it possible to do the same with a regular PC?
Offline
User avatar

Bryan Ray

  • Posts: 2065
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Does Pressure work in Paint node?

PostThu Oct 14, 2021 3:51 pm

If you have a drawing tablet. This is a regular PC, just with the tablet hardware. This is the one I use:

https://estore.wacom.com/en-US/wacom-in ... th660.html
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

Jinxer

  • Posts: 31
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Does Pressure work in Paint node?

PostSat Oct 16, 2021 10:08 am

There must be a way to draw without a touch screen. Why can't I draw a polyline with my mouse and change the brush size in different parts of it?
Offline

Sander de Regt

  • Posts: 2386
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Does Pressure work in Paint node?

PostSat Oct 16, 2021 7:05 pm

That is a good question, but that's not the same as pressure the way most people understand it.
Being able to access this information after the fact would be a great feature though.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Frank Feijen

  • Posts: 134
  • Joined: Tue Dec 13, 2016 10:04 am
  • Location: Vilvoorde, Belgium

Re: Does Pressure work in Paint node?

PostSat Oct 16, 2021 8:15 pm

It's just written as Pressure though, if you'd look at the node-code:
So I imagine smarter people would be able to do nice things with this?

Code: Select all
{
   Tools = ordered() {
      Paint1 = Paint {
         CtrlWZoom = false,
         Inputs = {
            Input = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Paint = Input {
               SourceOp = "Multistroke1",
               Source = "Out",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 275, 49.5 } },
      },
      Multistroke1 = Multistroke {
         IsThreaded = true,
         Brushes = {
            "SoftBrush",
            "CircleBrush"
         },
         ApplyModes = { "PaintApplyColor" },
         CtrlWZoom = false,
         Inputs = {
            BrushControls = Input { Value = 1, },
            BrushShape = Input { Value = FuID { "CircleBrush" }, },
            ["SoftBrush.TabletSettings"] = Input { Value = 1, },
            ["SoftBrush.VarySize"] = Input { Value = 1, },
            ["SoftBrush.Size"] = Input { Value = 0.0827, },
            StrokeControls = Input { Value = 1, },
            Spacing = Input { Value = 0.087, },
            ["CircleBrush.TabletSettings"] = Input { Value = 1, },
            ["CircleBrush.VarySize"] = Input { Value = 1, },
            ["CircleBrush.VaryOpacity"] = Input { Value = 0, },
            ["CircleBrush.Size"] = Input { Value = 0.0551, },
         },
         Strokes = {
            {
               Time = 0,
               Params = {
                  BrushShape = {
                     Value = FuID { "CircleBrush" }
                  },
                  ["SoftBrush.VarySize"] = {
                     Value = 1
                  },
                  ["SoftBrush.Size"] = {
                     Value = 0.0827
                  },
                  Spacing = {
                     Value = 0.087
                  },
                  ["CircleBrush.VarySize"] = {
                     Value = 1
                  },
                  ["CircleBrush.VaryOpacity"] = {
                     Value = 0
                  },
                  ["CircleBrush.Size"] = {
                     Value = 0.0551
                  },
               },
               { X = -0.225936, Y = -0.119952, T = 0, Pressure = 0.240333 },
               { X = -0.225936, Y = -0.119952, T = 8, Pressure = 0.259377 },
               { X = -0.225936, Y = -0.119952, T = 15, Pressure = 0.268685 },
               { X = -0.224599, Y = -0.119952, T = 23, Pressure = 0.298959 },
               { X = -0.223262, Y = -0.117577, T = 30, Pressure = 0.319468 },
               { X = -0.221925, Y = -0.115202, T = 38, Pressure = 0.322886 },
               { X = -0.219251, Y = -0.110451, T = 45, Pressure = 0.331187 },
               { X = -0.216578, Y = -0.108076, T = 53, Pressure = 0.347331 },
               { X = -0.212567, Y = -0.103325, T = 60, Pressure = 0.363933 },
               { X = -0.208556, Y = -0.10095, T = 68, Pressure = 0.375652 },
               { X = -0.204545, Y = -0.0961995, T = 75, Pressure = 0.38493 },
               { X = -0.199198, Y = -0.0914489, T = 83, Pressure = 0.389813 },
               { X = -0.19385, Y = -0.0890736, T = 90, Pressure = 0.393231 },
               { X = -0.188503, Y = -0.084323, T = 98, Pressure = 0.394696 },
               { X = -0.181818, Y = -0.0819477, T = 105, Pressure = 0.396161 },
               { X = -0.176471, Y = -0.0795724, T = 113, Pressure = 0.396649 },
               { X = -0.17246, Y = -0.0771972, T = 120, Pressure = 0.396649 },
               { X = -0.169786, Y = -0.0771972, T = 128, Pressure = 0.396161 },
               { X = -0.167112, Y = -0.0771972, T = 135, Pressure = 0.393719 },
               { X = -0.165775, Y = -0.0771972, T = 143, Pressure = 0.391278 },
               { X = -0.165775, Y = -0.0795724, T = 150, Pressure = 0.386395 },
               { X = -0.165775, Y = -0.084323, T = 158, Pressure = 0.381512 },
               { X = -0.165775, Y = -0.0866983, T = 165, Pressure = 0.378094 },
               { X = -0.165775, Y = -0.0938242, T = 173, Pressure = 0.378094 },
               { X = -0.167112, Y = -0.0985748, T = 181, Pressure = 0.377606 },
               { X = -0.169786, Y = -0.105701, T = 188, Pressure = 0.378094 },
               { X = -0.171123, Y = -0.112827, T = 196, Pressure = 0.379559 },
               { X = -0.17246, Y = -0.119952, T = 203, Pressure = 0.38493 },
               { X = -0.173797, Y = -0.129454, T = 211, Pressure = 0.394208 },
               { X = -0.175134, Y = -0.138955, T = 218, Pressure = 0.404492 },
               { X = -0.176471, Y = -0.148456, T = 226, Pressure = 0.415235 },
               { X = -0.176471, Y = -0.157957, T = 233, Pressure = 0.430372 },
               { X = -0.176471, Y = -0.167458, T = 241, Pressure = 0.446486 },
               { X = -0.176471, Y = -0.17696, T = 248, Pressure = 0.459181 },
               { X = -0.176471, Y = -0.186461, T = 256, Pressure = 0.470931 },
               { X = -0.173797, Y = -0.191211, T = 263, Pressure = 0.483139 },
               { X = -0.169786, Y = -0.198337, T = 271, Pressure = 0.492416 },
               { X = -0.165775, Y = -0.200713, T = 278, Pressure = 0.502182 },
               { X = -0.159091, Y = -0.200713, T = 286, Pressure = 0.517808 },
               { X = -0.152406, Y = -0.200713, T = 293, Pressure = 0.546159 },
               { X = -0.141711, Y = -0.195962, T = 301, Pressure = 0.575457 },
               { X = -0.129679, Y = -0.188836, T = 308, Pressure = 0.613086 },
               { X = -0.113636, Y = -0.179335, T = 316, Pressure = 0.643361 },
               { X = -0.0935829, Y = -0.165083, T = 323, Pressure = 0.668294 },
               { X = -0.0708556, Y = -0.146081, T = 331, Pressure = 0.695151 },
               { X = -0.0441177, Y = -0.122328, T = 338, Pressure = 0.719077 },
               { X = -0.0147059, Y = -0.0985748, T = 346, Pressure = 0.737663 },
               { X = 0.0187166, Y = -0.067696, T = 353, Pressure = 0.75866 },
               { X = 0.0548128, Y = -0.0344418, T = 361, Pressure = 0.782586 },
               { X = 0.092246, Y = 0.00118762, T = 368, Pressure = 0.799188 },
               { X = 0.131016, Y = 0.0415677, T = 376, Pressure = 0.805567 },
               { X = 0.169786, Y = 0.084323, T = 384, Pressure = 0.812403 },
               { X = 0.207219, Y = 0.127078, T = 391, Pressure = 0.812403 },
               { X = 0.243316, Y = 0.169834, T = 399, Pressure = 0.814356 },
               { X = 0.275401, Y = 0.212589, T = 406, Pressure = 0.811426 },
               { X = 0.302139, Y = 0.252969, T = 414, Pressure = 0.75573 },
               { X = 0.324866, Y = 0.288599, T = 421, Pressure = 0.62627 }
            }
         }
      },
      Background1 = Background {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 110, 49.5 } },
      }
   }
}
Offline
User avatar

Bryan Ray

  • Posts: 2065
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Does Pressure work in Paint node?

PostSat Oct 16, 2021 11:15 pm

One of my long-term projects is to try to build a Polygon tool with a spline control for thickness. I have most of the code figured out (see the TaperedShapes tool), but I have not yet been able to crack the nut of accessing the points from the spline widget in the viewport in the fuse (I suspect I could do it with a plug-in, but I haven't ventured into those waters as of yet).

I hadn't considered hacking the pressure parameter. Perhaps I'll do some experimenting in that direction in the near future.

It would be nice if we could utilize the pressure controls without a tablet in the same way you can do with Photoshop.
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

mechanicus

  • Posts: 14
  • Joined: Mon Mar 05, 2018 11:13 pm
  • Real Name: Jonathan Mechanicus

Re: Does Pressure work in Paint node?

PostMon Oct 18, 2021 7:57 am

Bryan Ray wrote:One of my long-term projects is to try to build a Polygon tool with a spline control for thickness. I have most of the code figured out (see the TaperedShapes tool), but I have not yet been able to crack the nut of accessing the points from the spline widget in the viewport in the fuse (I suspect I could do it with a plug-in, but I haven't ventured into those waters as of yet).

I hadn't considered hacking the pressure parameter. Perhaps I'll do some experimenting in that direction in the near future.

It would be nice if we could utilize the pressure controls without a tablet in the same way you can do with Photoshop.
Yes and having preset brushes would come in handy. Preferably selectable with keyboard shortcuts.

I find the pressure and size not working in my Mac. I'm using a Wacom Cintiq and I'm changing brush size using the CMD key all the time. When doing a lot of rotoscoping this is not the ideal situation.

Adding to that is that I am really missing a shortcut for the eraser and softness. Or is there one and am I overlooking it?
That would make life so much easier.

I have the feeling the paint node is still v.1 and not really intuitive.

Verstuurd vanaf mijn CPH2067 met Tapatalk
--
BigSur (clean machine)
MacPro late 2013
1TBSSD/64GB
Wacom Cintiq
Offline

Jinxer

  • Posts: 31
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Does Pressure work in Paint node?

PostWed Oct 20, 2021 5:56 pm

Do you know of any plugin similar to the Paint node that can resize a brush during painting?

Return to Fusion

Who is online

Users browsing this forum: AntMan, crtkecnkl659 and 9 guests