Sort by:
1 - 2 of
21
Sort by:
1 - 1 of
11
hi there….
try the following, there is no checks and some assumptions. Hope it solves what you need…
set comp_list [ hm_entitylist comps id ]; #gets all comps and loop thru them.
foreach comp_id $comp_list {
#gets current name and color.
set comp_name [ hm_getvalue comps id=$comp_id dataname=name ]
set color [ hm_getvalue comps id=$comp_id dataname=color ]
# create a new prop with the componentn name/id/color
*createentity props id=$comp_id name="$comp_name" cardimage=PSHELL color=$color
set last_id [ hm_latestentityid props ]
#assigns the new property to the component 'comp_id'
*setvalue comps id=$comp_id propertyid={props $last_id}
}
hi there….
try the following, there is no checks and some assumptions. Hope it solves what you need…
set comp_list [ hm_entitylist comps id ]; #gets all comps and loop thru them.
foreach comp_id $comp_list {
}