Skip to content

Commit

Permalink
Commented out attempt at default value not found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Sep 28, 2023
1 parent 54b7930 commit c4daa37
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions randomiser/define_prop/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,34 @@ def draw_sockets_list_UD(
row = layout.row()
row_split = row.split()
col1 = row_split.column(align=True)
col2 = row_split.column(align=True)
row_split.column(align=True)
col3 = row_split.column(align=True)
col4 = row_split.column(align=True)
col5 = row_split.column(align=True)
row_split.column(align=True)

# UD prop name
col1.alignment = "RIGHT"
col1.label(text="value") # text=sckt.name)

# socket current value
# col2.prop(
# UD,
# "default_value", #####Default value not found
# icon_only=True,
# )
# if "bpy.context.scene" in full_str:
# col2.prop(
# getattr(
# bpy.context.scene,
# attribute_only_str
# )
# # sockets_props_collection,
# # "default_value", #####Default value not found
# # icon_only=True,
# )
# elif "bpy.data.objects" in full_str:
# col2.prop(
# getattr(
# bpy.data.objects["Cube"],
# attribute_only_str
# )
# )
# col2.enabled = False # current value is not editable

# # socket min and max columns
Expand Down Expand Up @@ -157,8 +170,7 @@ def draw_sockets_list_UD(
# e.g. min_float_1d so m_str + "_" + float_1d

# randomisation toggle
# col5.prop(
col2.prop(
col5.prop(
sockets_props_collection, # [socket_id],
"bool_randomise",
icon_only=True,
Expand Down

0 comments on commit c4daa37

Please sign in to comment.