Skip to content

Commit

Permalink
Commented out print statements in ui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Sep 28, 2023
1 parent d5ba2f5 commit fdf7c7d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions randomiser/define_prop/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def draw_sockets_list_UD(
# selected in the graph it moves to the bottom of the panel.
list_UD_props_sorted = list_UD_props
# sorted(list_UD_props, key=lambda x: x.name)
print("IN draw_sockets_list_UD ==== ", list_UD_props_sorted)
# print("IN draw_sockets_list_UD ==== ", list_UD_props_sorted)
# for i_n, UD_str in enumerate(list_UD_props_sorted):
row = layout.row()

Expand Down Expand Up @@ -141,11 +141,11 @@ def draw_sockets_list_UD(
else: # bpy.types.NodeSocketBool:
for m_str, col in zip(["min", "max"], [col3, col4]):
attr_type = attr_get_type(bpy.context.scene, attribute_only_str)[0]
print(
"sockets_props_collection ???????",
sockets_props_collection,
)
print("type ??????????? ", attribute_only_str, attr_type)
# print(
# "sockets_props_collection ???????",
# sockets_props_collection,
# )
# print("type ??????????? ", attribute_only_str, attr_type)
col.prop(
sockets_props_collection, # [socket_id],
m_str + "_" + cs.UD_prop_to_attr[attr_type],
Expand Down Expand Up @@ -483,8 +483,8 @@ def draw(self, context):
self.subpanel_UD_idx
] # .collection

print("sockets_props_collection = ", sockets_props_collection)
print(" and name ========== ", sockets_props_collection.name)
# print("sockets_props_collection = ", sockets_props_collection)
# print(" and name ========== ", sockets_props_collection.name)

# # Get list of input nodes to randomise for this subpanel's GNG
# [sckt.name.split("_")[0] for sckt in sockets_props_collection]
Expand All @@ -497,7 +497,7 @@ def draw(self, context):
list_parent_nodes_str[0] + ".", ""
)

print("list_parent_nodes_str = ", attribute_only_str)
# print("list_parent_nodes_str = ", attribute_only_str)

# full_list = [prop.name for prop in list(C.scene.custom)]
list_all_UD_props = [
Expand All @@ -512,15 +512,15 @@ def draw(self, context):
# bpy.data.node_groups[subpanel_gng.name].nodes[nd_str]
# for nd_str in list_parent_nodes_str
]
print("list_all_UD_props ====== ", list_all_UD_props)
print(
"bpy.context.scene.custom_index == ",
bpy.context.scene.custom_index,
)
# print("list_all_UD_props ====== ", list_all_UD_props)
# print(
# "bpy.context.scene.custom_index == ",
# bpy.context.scene.custom_index,
# )
list_current_UD_props = list_all_UD_props[
bpy.context.scene.custom_index
].name
print("list_current_UD_props =======", list_current_UD_props)
# print("list_current_UD_props =======", list_current_UD_props)

# Draw sockets to randomise per input node, including their
# current value and min/max boundaries
Expand Down

0 comments on commit fdf7c7d

Please sign in to comment.