Indents and Input Controls

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

Indents and Input Controls

#1

Post by Kristof » Thu Aug 08, 2019 3:41 pm

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

Image
by Kristof » Sat Aug 10, 2019 5:45 am
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" , {
        LINKID_DataType = "Number",
        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" , {
        LINKID_DataType = "Number",
        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" , {
        LINKID_DataType = "Number",
        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

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

Re: Indents and Input Controls

#2

Post by Midgardsormr » Thu Aug 08, 2019 4:18 pm

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.

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

Re: Indents and Input Controls

#3

Post by Kristof » Fri Aug 09, 2019 3:25 am

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" , {
        LINKID_DataType = "Number",
        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" , {
        LINKID_DataType = "Number",
        INP_Passive = true,
        INPID_InputControl = "ScrewControl",
        INP_Integer = false,
        --ICD_Width = 0.5,
    } )

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

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

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

Re: Indents and Input Controls

#4

Post by AndrewHazelden » Fri Aug 09, 2019 4:27 am

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.

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

Re: Indents and Input Controls

#5

Post by Midgardsormr » 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.

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

Re: Indents and Input Controls

#6

Post by AndrewHazelden » Fri Aug 09, 2019 8:59 am

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. :)

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

Re: Indents and Input Controls

#7

Post by Kristof » Sat Aug 10, 2019 5:45 am

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" , {
        LINKID_DataType = "Number",
        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" , {
        LINKID_DataType = "Number",
        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" , {
        LINKID_DataType = "Number",
        INP_Passive = true,
        INPID_InputControl = "SliderControl",
        INP_Integer = false,
        INP_Default = 1.0,
        INP_MinScale = 0,
        INP_MaxScale = 4,
    } )
    
self:EndControlNest()