## Indents and Input Controls

Kristof
Fusionista
Posts: 545
Joined: Thu Aug 07, 2014 1:30 pm
Been thanked: 16 times

### Indents and Input Controls

I'm trying to replicate the setup of a regular Transform node, but is it possible to add "indents" to the screw controls?

Found it. @Chad's ColorMatrixTransform does it properly:

Code: Select all

self:BeginControlNest( "Shear" , "Shear" , true , { LBLC_PickButton = true } )

ShearX = self:AddInput( "X Shear" , "Shear.X" , {
INP_Passive = true,
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_Default = 1.0,
INP_MinScale = 0,
INP_MaxScale = 4,
} )

ShearY = self:AddInput( "Y Shear" , "Shear.Y" , {
INP_Passive = true,
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_Default = 1.0,
INP_MinScale = 0,
INP_MaxScale = 4,
} )

ShearZ = self:AddInput( "Z Shear" , "Shear.Z" , {
INP_Passive = true,
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_Default = 1.0,
INP_MinScale = 0,
INP_MaxScale = 4,
} )

self:EndControlNest()
Go to full post

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: Indents and Input Controls

Only if you put them in a nest, like those are. Or you could possibly make a LabelControl that's just " " on the same line as the ScrewControl if you didn't want to nest them.

Kristof
Fusionista
Posts: 545
Joined: Thu Aug 07, 2014 1:30 pm
Been thanked: 16 times

### Re: Indents and Input Controls

Hi Bryan, thanks. These are nested but I guess I'm missing an attribute that applies indentation? I thought of using a " " LabelControl but if there is a particular attribute for this sort of thing, I would prefer to use it.

This is what I have:

Code: Select all

    InLabel = self:AddInput( "Translation" , "Translation" , {
INPID_InputControl = "LabelControl",
INP_External = false,
INP_Passive = true,
LBLC_DropDownButton = true,
LBLC_NumInputs = 3,
LBLC_NestLevel = 1,
INP_Default = 1,
} )

TranslateX = self:AddInput( "X Offset" , "Translate.X" , {
INP_Passive = true,
INPID_InputControl = "ScrewControl",
INP_Integer = false,
--ICD_Width = 0.5,
} )

TranslateY = self:AddInput( "Y Offset" , "Translate.Y" , {
INP_Passive = true,
INPID_InputControl = "ScrewControl",
INP_Integer = false,
} )

TranslateZ = self:AddInput( "Z Offset" , "Translate.Z" , {
INP_Passive = true,
INPID_InputControl = "ScrewControl",
INP_Integer = false,
} )

AndrewHazelden
Fusionator
Posts: 1292
Joined: Fri Apr 03, 2015 3:20 pm
Location: West Dover, Nova Scotia, Canada
Been thanked: 35 times
Contact:

### Re: Indents and Input Controls

Midgardsormr wrote:
Thu Aug 08, 2019 4:18 pm
Or you could possibly make a LabelControl that's just " " on the same line as the ScrewControl if you didn't want to nest them.
I haven't tried that in Fusion 16 final... but I'd probably guess adding more spaces for a simulated indent on a user control in Fusion 16/Resolve 16 Fusion page is likely a bad idea since the UI has a lot of limitations on the formatting compared to the freedom of Fusion 7-9. Using a nest is likely the best approach overall in v16.

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: Indents and Input Controls

Hmmm... You're right, that doesn't indent. I was sure that it did… I'll look into it and see if I can turn something up.

AndrewHazelden
Fusionator
Posts: 1292
Joined: Fri Apr 03, 2015 3:20 pm
Location: West Dover, Nova Scotia, Canada
Been thanked: 35 times
Contact:

### Re: Indents and Input Controls

Midgardsormr wrote:
Fri Aug 09, 2019 6:55 am
Hmmm... You're right, that doesn't indent. I was sure that it did… I'll look into it and see if I can turn something up.
Maybe some strange non-printable character that looks like a space might do the indent you are trying to foce, but then Fusion will likely have issues if you try to access that control name programmatically from an expression, a script. or the console.

Kristof
Fusionista
Posts: 545
Joined: Thu Aug 07, 2014 1:30 pm
Been thanked: 16 times

### Re: Indents and Input Controls

Found it. @Chad's ColorMatrixTransform does it properly:

Code: Select all

self:BeginControlNest( "Shear" , "Shear" , true , { LBLC_PickButton = true } )

ShearX = self:AddInput( "X Shear" , "Shear.X" , {
INP_Passive = true,
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_Default = 1.0,
INP_MinScale = 0,
INP_MaxScale = 4,
} )

ShearY = self:AddInput( "Y Shear" , "Shear.Y" , {
INP_Passive = true,
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_Default = 1.0,
INP_MinScale = 0,
INP_MaxScale = 4,
} )

ShearZ = self:AddInput( "Z Shear" , "Shear.Z" , {
self:EndControlNest()