Jump to: Board index » General » Fusion

Auto "auto-crop"

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

Kenzo

  • Posts: 411
  • Joined: Sat May 04, 2013 6:04 pm
  • Location: Poland
  • Real Name: Eryk Rogozinski

Auto "auto-crop"

PostFri Jan 17, 2020 5:48 pm

Is there any way to force auto-crop without pressing a button?
Eryk Rogozinski
www.art-fx.eu
Offline

Lucjan Hirszmajer

  • Posts: 31
  • Joined: Mon Sep 14, 2015 12:14 pm

Re: Auto "auto-crop"

PostFri Jan 17, 2020 6:05 pm

You can try macro I made some time ago with help of WSL:

Code: Select all
{
   Tools = ordered() {
      CropTransparent = GroupOperator {
         CtrlWZoom = false,
         Inputs = ordered() {
            MainInput1 = InstanceInput {
               SourceOp = "ADoD",
               Source = "Input",
            },
            Input1 = InstanceInput {
               SourceOp = "ADoD",
               Source = "AdjustLeft",
               Default = 0,
            },
            Input2 = InstanceInput {
               SourceOp = "ADoD",
               Source = "AdjustBottom",
               Default = 0,
            },
            Input3 = InstanceInput {
               SourceOp = "ADoD",
               Source = "AdjustRight",
               Default = 0,
            },
            Input4 = InstanceInput {
               SourceOp = "ADoD",
               Source = "AdjustTop",
               Default = 0,
            }
         },
         Outputs = {
            MainOutput1 = InstanceOutput {
               SourceOp = "Crop1_1",
               Source = "Output",
            }
         },
         ViewInfo = GroupInfo {
            Pos = { 440, 346.5 },
            Flags = {
               AllowPan = false,
               ForceSource = true,
               GridSnap = true,
               ConnectedSnap = true,
               AutoSnap = true,
               RemoveRouters = true
            },
            Size = { 291, 66.3636, 145.5, 24.2424 },
            Direction = "Horizontal",
            PipeStyle = "Direct",
            Scale = 1,
            Offset = { 0, 0 }
         },
         Tools = ordered() {
            ADoD = AutoDomain {
               CtrlWShown = false,
               NameSet = true,
               ViewInfo = OperatorInfo { Pos = { -83, 8.75758 } },
            },
            Crop1_1 = Crop {
               CtrlWZoom = false,
               CtrlWShown = false,
               Inputs = {
                  StartEndRenderScripts = Input { Value = 1, },
                  XOffset = Input {
                     Value = 217,
                     Expression = "self.Input.DataWindow[1]",
                  },
                  YOffset = Input { Expression = "self.Input.DataWindow[2]", },
                  XSize = Input {
                     Value = 1472,
                     Expression = "self.Input.DataWindow[3]-self.Input.DataWindow[1]",
                  },
                  YSize = Input {
                     Value = 840,
                     Expression = "self.Input.DataWindow[4]-self.Input.DataWindow[2]",
                  },
                  Input = Input {
                     SourceOp = "ADoD",
                     Source = "Output",
                  },
               },
               ViewInfo = OperatorInfo { Pos = { 82, 8.75758 } },
            }
         },
      }
   },
   ActiveTool = "CropTransparent"
}
Offline

Kenzo

  • Posts: 411
  • Joined: Sat May 04, 2013 6:04 pm
  • Location: Poland
  • Real Name: Eryk Rogozinski

Re: Auto "auto-crop"

PostFri Jan 17, 2020 6:18 pm

Thank you very much.
Works great, that's exactly what I meant. :)
Eryk Rogozinski
www.art-fx.eu
Offline
User avatar

Pieter Van Houte

  • Posts: 644
  • Joined: Wed Nov 05, 2014 1:04 am

Re: Auto "auto-crop"

PostFri Jan 17, 2020 8:09 pm

Lucjan Hirszmajer wrote:You can try macro I made some time ago with help of WSL:


Bonus points if you submit it to Reactor ;)
Support We Suck Less on Patreon -> https://www.patreon.com/wesuckless

https://www.steakunderwater.com/wesuckless

Return to Fusion

Who is online

Users browsing this forum: No registered users and 56 guests