AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Vectorworks reader4/9/2023 If a list of indices is given, the output will be a list of items' ) This.SetDescription( 'Returns the element at a specified index in a list. class Params(metaclass = Marionette.OrderedClass): Next new input would be a real number of 1 for the index. Now i test it with a debug node, it just print the context from the node "Sort" and i get this: = 1īut i need the line of index 1 so i need to use a different node "Get Item" InList.SetDescription( "The input list" ) This.SetDescription( 'Sorts the elements in a list' ) Mag = Magnitude(pt2 - pt1, pt2 - pt1)Īfter that i sort it with the node "Sort" Params(metaclass = Marionette.OrderedClass): Length.SetDescription( "the length of the line" ) LineH.SetDescription( "a 2D line object" ) LineH = Marionette.PortIn( vs.Handle(0), "hLine" ) This.SetDescription( "Returns the length of a line" ) This = Marionette.Node( "Get Line Length" ) All lines going into the input of the "Get Line Length" node Params(metaclass = Marionette.OrderedClass): I created 3 lines with different length and at the end i need the center point of 1 specific line. Python is used in Vectorworks (Marionette) and there are already finished nodes to do alot of visual programming but at some point you need to create your own nodes or im not experienced enough to create what i want with the existing node for this situation.
0 Comments
Read More
Leave a Reply. |