Eyeon:Script/Reference/Applications/Fuse/Classes/Input/ButtonControl

From VFXPedia

Jump to: navigation, search

Contents


Description

The ButtonControl displays a single clickable button in the tools control window.

This control returns a Number with a value of either 1 (clicked) or 0 (unclicked). To add a Button, set the INPID_InputControl attribute of the AddInput function to the string "ButtonControl".

Checking this Input's value from within the Process dialog will not return a value other than 0. The only time the value is 1 is when the button has been clicked. The button will always immediately return to the unclicked state. For that reason, handling of the button click is generally done from within the NotifyChanged function.


Attributes

BTNC_Align string : this attribute determines the alignment of the button. Valid values are "Left", "CenteredLeft", "Center", "CenteredRight", and "Right",

.


Example

	InLabel = self:AddInput("This is a Button", "Label1", {
		LINKID_DataType = "Text",
		INPID_InputControl = "ButtonControl",
		INP_DoNotifyChanged = true,
		INP_External = false,
	})


Tips for ButtonControl (edit)

EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/ButtonControl