Jump to content

DomC

Member
  • Posts

    604
  • Joined

  • Last visited

Everything posted by DomC

  1. Normally, an int will be automatically converted to a real value if necessary. So this should not be your problem. I don't see your script but I can imagine the problem is to repeat different angle values for the number of your symbols. You can make this by repeating one of the inputs of your angle generator (random number as example) A good start is to just check it step by step. As example connect an int to the angle and look what happens. Then you connect a real value and look again what happens. You will see, there is no difference between the input. But If you have a hundred symbols, and just input one value to the angle, all symbols will be rotated to the same angle. Use the debug mode (bug method) to see, if all wires have the same number of values. Another Issue could be, the Rotate-Node detects your symbol as a 2D Object. So you cant make a 3D Rotation. Maybe you have 2D/3D Symbols? Just post a part of your example, because it's hard to tell all possible issues on stock. symbol angles.vwx
  2. A new File link. The old one is broken. Also the script in a newer version. More clearly by the use of Wrappers. Combined also with the Random Symbol Distribution. Still fun. 01_zufallseffekte.vwx.zip
  3. Version 1.0.1

    666 downloads

    During my last Marionette-Project, I produced some simple geometry nodes. Which maybe can be useful to can make geometrical constructions instead of mathematical (trigonometry) calculations. The Nodes: "Perpendicular from Point to Line", "Parallel from Line through Point", "Circle-Circle Intersection", "Line-Circle Intersection", "Line-Line Intersection", "2 Circle Middleline" and some more. Also the more Complicated Nodes "Circle tangent to 2 Circle", "Point or Circle tangent to 3 Circles"
  4. Version 1.0.1

    92 downloads

    Imagine you have client, which delivers you a room list. And a list, which objects have to be in this rooms. You can consider this lists with hundreds of rooms on your left screen and click them one by one in your rooms. You will make errors and your eyes will get squared. Another real interesting example how you could accelerate a routine job with a marionette script.
  5. Version 1.0.0

    103 downloads

    10 cool nodes for text and string. Replacing, separating, coloring, Dimension Text Size,
  6. Version 1.0.0

    130 downloads

    Great nodes to use in real money making projects. PDF, SketchUp, Import csv, import ini
  7. Version 1.0.0

    83 downloads

    GetRNames(good), RecToTable(powerfull), GetMultiRecValues (specific usecase)
  8. Version 1.0.0

    130 downloads

    PutByRefPoint(great, powerful), LinearArea(good), ConvertToGroup (very specific)
  9. Version 1.0.0

    102 downloads

    Hello I putted some of my geometry-math-point nodes (resource-browser-ready) together on a single file. I started to clean up all my marionette stuff, so I think here is a more secure place to store, as on my desktop :-)
  10. Hi It is always nice, to see some real-live examples. Converting a grayscale picture to different circles and bring them to a milling-machine. I got this from a "marionette-student" of me. On the picture you can see a 2meter board leant on the wall (black bar is because of privacy :-) And the File for this: logo bohren Kursbeispiel.vwx Just reduce Pixel of your picture to got less circles. The Script, handles a Named object, which has to be an image object. logo_bohren_Kursbeispiel.vwx
  11. Hi Bernd Great to see, you stay with it! You used some numbers for naming (which is beside that a good idea to keep overview ). Numbers and some characters, you should not need for naming nodes or wrappers. For input nodes, we are allowed to use numbers in front of your input-name. Like 0_1, 0_2, 0_3 1_0 etc. Liebe Grüsse nach Berlin DomC
  12. Hi I try to do something organic out of that in 3D. Often requested from students and teachers. My approaches: 1. Project Points on a NURBS (Not satisfying completely because on steep surface there had to be some kind of compensation ) 2. Making path extrudes for skeleton 3. Round an offset path (project an offset path) Someone knows how to round a nurbs curve? 4. Add all those path extrudes (which maybe failed because or geometrical inconsistencies) and get a soft and organic form ... Or is it possible to just meshing (I think it maybe could, because I think there are python based examples which can do this?) the whole geometry and using python for calculating all mesh points. Hopeless? VoronoiObj_3D_Projection.vwx
  13. @MarissaF I checked with the German Version SP2 on MacOSX 10.10.5 and Windows 10 SP2. Without any issues here. That's Great ... not looked in Detail into this, but those modules seem to open a pretty wide new playground.
  14. Great Information! That seem to work.
  15. A Marionette PlugIn, that collects a custom drawing (font character, picture whatever) and refer it to a regular font character. This "Font" is placed into the control geometry container. Also we could just use a blue symbol. The Heart of the script is a custom node "create font dict" which manage collecting the control geometry. Also it returns a dictionary sequence data type. A dictionary is very useful if you want to have pairs of data. In this case a character and a drawing group with informations forms a pair. Sure, the script could be improved by several things (multi-line, alignment, page based etc. ) But I think it is very useful to have that plug in. Have fun with it. Maybe you can share your own fonts and your wonderful handwriting here. Thanks. Usecases: 1. Handwriting Font 2. Vectorfont (ability to use sketch view) 3. For Milling Machines 4. Fast inserting of object sequences 5. ... Update v2019 1. Script Crashed if input Geometry was None (Integrated a script blocker and an Alert Dialog ) 2. Input Dict was always None, because use of an outdated Script command (vs.GetType() instead vs.GetTypeN()). Issue in many other scripts. One of the very rare incompatibilites of Script commands the past Years. Second Example (Shelve) attached. To take care. This scripts somehow forgives no errors in the object input. So be careful by edit the control geometry. None Input in the Textfield or in the Input Geometry (Symbol, Control Geometry) will Result in crash. Example shelve v2019.vwx Marionette_Schrift_v2019.vwx
  16. 1. Linking Symbol with Record - Enter Symbol, DSelect all, Link to Record - All New Placed Symbols in the Drawing have now a Record Link. - All existing Objects in the Drawing keep their Recors Link or their non-record Link. 2. Why record Links still there after Extrusion - If you link the Symbol Container (like above) the symbol is linked to the record, not the poly - So the symbol always keep the record. Whatever is inside the symbol b.t.w. think we are rotating in a circle. I think this is no sorcery but it think we need more specifications. Because all the technique for this is already there. - Contains the List a unique Room Number (Every layer different or is the Layer Name part of the unique Room ID)?(OK, the Room Number is a Text field in the Drawing. But is this text is already there or is this text in a list at the beginning. - Is every project on a single story/layer? - Contains the List an Extrusion Value for the Room? The other known specifications: - We need a Name in the Object Info "Name"-Field - This Name depending on text in a specific class (so maybe an input field for class name) (Running a Marionette by activating things is not working -> So the better way for this workflow is a python Vectorscript) - This "Name" value does something after the export to unity model? Next Steps: 1. I think it is the first step to link objects to room number and room extrusion (bevor we think about symbol extrusion etc.))) Just a small test with the polys 2. Next find out, how to extrude an object by the extrusion value and how to name the object in the info palette (which seems to be necessary) 3. Find a Way to update and adapt in an easy way, to a new project.
  17. Why we need symbols here? Is in necessary to export symbols? Or were they imported from another software?
  18. OK I read the full text :-) 1. Find A way to attach your existing text-fields to a record or room record. Because you will need much time and will make errors by manually enter the room numbers. Attached a Script which will make this. - First extrude all polys and Ungroup. Do not use rectangles. It will just work with polygons and polylines. Also do not move the extrudes the script access to the content of the extrude and those coordinates. - Attach Record Format - Run script This Script also works for other text-field and infos. With this Script you could also get the class and write it into a record field. Build this more to have a Script which nurse all needed Informations and attach them to your extrude. So could ground all further scripts on this record data. Just an Idea. 3. Script which access the list (see above) 4. Next Step. Whith 3D Info, you can get the zValue of your extrude and Set 3D Info you can reset the extrude zValue. Maybe a first step for automate the complete workflow. ExtrudeLinkToList.vwx Attach_Record_from_Text_Field.mp4
  19. Hi While nobody has time to build this script for you, maybe I can help you to build it yourself. 1. You Need the Sheet as a Text Tab oder a character separated Text File. You can save that out of excel. 2. Or you copy paste the list into a Vectorworks Worksheet 3. First you have to grab this List. The Script-Part for doing that is available. Example: https://forum.vectorworks.net/index.php?/topic/42135-node-example-for-filling-an-area-with-symbols/ And a new and more flexible node to import csv files here: https://forum.vectorworks.net/index.php?/topic/47801-the-rest-of-domc-nodes/ With this nodes, you will be able to pull your (excel)- List into Vectorworks 4. Next you need a key value. A value, that is part of your excel ist and a value, that is attached to your object in Vectorworks. You have several method to do this: a. Attach a Record to your room-polygon and manually attach the room number (You could automate room numbering, but this will not match to your list I think) b. Or you convert automatically your polygons into space objects. Which has automatically a set of recordfields attached. 5. You have loop through your list and through your object (spaces or polys) and let the script search for a matching key. And if the key in list and from the object is identically, you change (duplicate your poly on a new layer and extrude by the value) or directly change the zheight of your space. Also this script engine is already existing here: https://forum.vectorworks.net/index.php?/topic/42135-node-example-for-filling-an-area-with-symbols/ 6. Also you would be able to use your originally symbols for doing this. I think you have to locate the symbol position. Then go inside symbol and take the geometry object inside of it and move it to the symbol position outside on a new layer as Example. Or you directly change your symbol if it is unique. Maybe this Script can help you to find a way get something from inside a pio (path Space etc.) and place it at the same coordinates like the object was: This would be a complicate part, because there are no standard nodes which can pull a geometry out of a symbol and place it an the new matching place. But the code inside the node "Obj on Space" shows how it can written in python. https://forum.vectorworks.net/index.php?/topic/47218-batch-export-of-pdf-thumbnails/ Or the Node "Get PlugIn Position" can help you to move the poly out of symbol. The node is posted here: https://forum.vectorworks.net/index.php?/topic/47801-the-rest-of-domc-nodes/ Or maybe a much more simple idea: 1. Duplicate your symbols 2. Use the "Convert to Group" node to get the poly inside the symbol 3. After that, you have to attach the symbol name on that poly (or another key see above ... because the poly will forget in which symbol it was) to match it with your excel list. Convert to Group Node can be found here: https://forum.vectorworks.net/index.php?/topic/47801-the-rest-of-domc-nodes/ I hope this help to get a start-assist for creating your script.
  20. Hi Alan I also saw that in other PIO Scripts. The Planar Boolean returns the "tool"- object to the Extrude Node. vs.Marionette_DisposeObj(tool) deletes that object at the very end of procedure. And then it's too late, because it was "eated" by the extrude node? Could be "hacked somehow like this": elif self.Params.op.value == 1: newObj = vs.ClipSurfaceN(blank, tool) # blank and tool won't be deleted after this operation if newObj != vs.Handle(0) and newObj != None and newObj != tool: blank = newObj vs.DelObject(tool) Or with a Marionette Node:
  21. DomC

    Group resize

    Screenthot Attached.
  22. Hm. Drawing the stacked circles is just a grid :-) No hexagon needed. OK, if order from a center and the colour pattern is part of the idea, there can be a reason to create circles in a specific algorithm.
  23. DomC

    Group resize

    This Project is one of my first one. The scalability of this network is not so good. So every new Feature, has to made inside the reshape node. 1. Because the parameter and the dim is collected in the same input node, this is not directly possible. But you can splitt the parameter name and the dim node in two. Just "Unname" the parameter name input node and it will hide. Screenshot attached. 2. The Parameter Inputs returns a List of ('parameterName', DimensionValue) If you want to input those input Values in other Network (calculations, Text, Record Fields etc.) you have to split those two values. The (GetXY)-Node can do that job (From the Point Node Folder) So you can use this to feed a text node. If you splitt the input in parameter name (string input) and value (dim input) anyway, this will not be necessary. Screenshot
  24. Always a relevation, an input from the master :-)) Me rookie scripter got so many inputs from Pat and other adepts, thanks at this at this point.
  25. DomC

    Group resize

    Looks like your object are 2D. So maybe this could be an option? Complex at first view but you can generate hundreds of different Window-Sizes out of one prototype geometry. https://youtu.be/Nm0te1zmpVY
×
×
  • Create New...