Hi everyone,
I am facing a problem with my script after introducing the UI through the Data-Shapes nodes.
The script creates vertical section views from a curve, but after I introduced the UI, the sections no longer point to the object I’ve selected, and I cannot see them in the plan view.
I’m attaching both scripts:
Curve2Section_REV.2.6.dyn (159.4 KB)
Curve2Section_no_UI.dyn (78.5 KB)
If anyone has a suggestion or a workaround, it would be greatly appreciated.
Thanks in advance!
You’re going to need to show us what you had and what you changed. Something has likely changed your list order or list structure but we can’t help you if we don’t know what it is.
Hi Nick, you’re right. Unfortunately, I cannot paste any attachments since I am a new user. The script is large, so I’ll paste some snapshots here.
1st Python Script
sectionList = IN[0]
prefix = IN[1]
winName = []
for i in range(len(sectionList)):
winName.append(prefix + str(i))
OUT = winName
2nd Python script
dataEnteringNode = IN
lenghts = IN[0]
result =[]
total_offset = 0
for i in lenghts:
result.append(total_offset)
total_offset = total_offset + i
OUT = result
If you use the Export Workspace as Image button in the top right of the Dynamo window, you can get a single image of your entire graph. Just make sure you’re zoomed in enough that the node titles are legible and be sure to pin all your node preview bubbles so we can see what your graph is doing.
Also, be sure to paste any python code as preformatted text so that it retains formatting.
Bumpped your permissions - you should be able to attach files now.
1 Like