Tbai Posted December 7, 2020 Share Posted December 7, 2020 Hello Marionette geniuses, I'm trying to create a wrapper to fillet multiple 2D polys at once by a customisable radius input for a larger network in 2021. I got it to work on a single poly, but it just won't convert all vertexs on multiple objects. It only converts one of the polys as intended, the rest only got either the first or the last vertex converted. I think I may misunderstand how 'list' works in the context for my lack of scripting knowledge...Lists don't return data respectively? how do I tell data goes back to the corresponding objects...? Any tips would be much appreciated! See an example file attached. Thanks in advance! Fillet multiple polys v2021.vwx 1 Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted December 8, 2020 Vectorworks, Inc Employee Share Posted December 8, 2020 You were almost there. You got the list of vertices correct, but the hPoly input of the Change Vertex Type node needs to have the correct polys compared to the list of vertices. What I did was I "repeated" each of the poly handles so that the polys and vertices matched. I didn't duplicate them, I just repeated their handles in a list so the node would know to go back to that poly each time. This is one of those times when it is important that you have the same list lengths going into the inputs because if they are not the same length, the last item in the shorter list will simply be repeated over and over until the longer list is complete. Fillet multiple polys v2021 SB.vwx 1 Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted December 8, 2020 Vectorworks, Inc Employee Share Posted December 8, 2020 One other thing - the Sequence node actually creates a list that is too long based on the number of vertices. The Series node works better. Fillet multiple polys v2021 SB.vwx 2 Quote Link to comment
Tbai Posted December 8, 2020 Author Share Posted December 8, 2020 Thank you @sbarrett for your very informative and detailed answer to my questions! That's excatly what I was looking for. Still need to get my head around when to use Sequence and Series...😃 Quote Link to comment
KingChaos Posted February 4, 2022 Share Posted February 4, 2022 (edited) hi, great stuff. is there any easier way to activate / deactivate this fillets? I got some rectangle here and it CAN have 4 fillets but sometimes i dont want to have this fillets. So i if then else the iIndex (true -> correct vertex count false -1) but it took me a lot of node to realize it. Is there a better way to deactivate the hole filleting of my rectangle with lesser nodes? Edited February 4, 2022 by KingChaos Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.