gre.set group attrs

gre.set_group_attrs(
    group_name,
    tag_table
)
            

Set properties for a group.  The group_name is the name of the group or a variable. The tag_table contains the tags and values for the properties to set.

        x,  y, hidden

Parameters: group_name The model full path of the group to change properties on tag_table A table with tags as the keys and the new values stored as the table's key values Examples:

function set_control_hidden()
    local dk_data = {}
    dk_data["hidden"] = 1
    gre.set_control_attrs("my_layer.my_group", dk_data)       
end
            
function set_control_blur_effect()
    local dk_data = {}
    local effect = {}

    effect["name"] = "blur"
    effect["passes"] = 3
    effect["radius"] = 1
    effect["composite"] = true

    dk_data["effect"] = effect
    gre.set_control_attrs("my_control", dk_data)
end

                    
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.