Skip to content

Constraint

Constraint#

(Constraint)

No corresponding User page.

Description#

A constraint is an operator that modifies SceneItem kinematics. It can be used to load an animation file or to do reparenting etc.

Public Attributes#

Type Name Visual Hint Description
double weight VISUAL_HINT_PERCENTAGE Set the weight of the constraint. With a value of 50% the item will be half way constraint position.

CID#

class "Constraint" "ProjectItem" {
    abstract yes
    embedded_only yes
    #version 0.9
    icon "../icons/object_icons/constraint.iconrc"
    doc "A constraint is an operator that modifies SceneItem kinematics. It can be used to load an animation file or to do reparenting etc."
    percentage "weight" {
        doc "Set the weight of the constraint. With a value of 50% the item will be half way constraint position."
        animatable yes
        numeric_range yes 0.0 10
        ui_range yes 0.0 1
        read_only yes
        value 1
    }
}