How to: HBoxContainter custom_constant/separation by code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mezkino

Hi there,

I created a HBox by code, and I am trying to change the separation of its child thought his property “separation”, but I don´t get the result.

Hbox_ref =
Hbox_ref.custom_constants/separation = 0

Where is the problem? Can you guys give me a hint?

:bust_in_silhouette: Reply From: Diet Estus

You cannot directly access an attribute that has slashes in its path.

You need

Hbox_ref.set("custom_constants/separation", 0)

Awesome, it works perfectly,

Really thank you :slight_smile:

Mezkino | 2018-06-01 15:00