Jump to content

Patrick Winkler

Member
  • Posts

    225
  • Joined

  • Last visited

Everything posted by Patrick Winkler

  1. Hi Micheal, here is an example that reads a value from an record that is attached to a symbol definition. Just wrote this down without testing,I hope it works. Is this what you need? symbolname = 'Sym' rec_name = 'Symbol record' fld_name = 'manufactor' sym_defini_handle = vs.GetObject (symbolname) val = vs.GetRField(sym_defini_handle, rec_name, fld_name) vs.AlrtDialog (val)
  2. Maybe that network works for you. It measure the distance between 2 points in the class 'GetDist'. get_point_dist.vwx
  3. The problem is that you have to start the network by a click. That will unselect your points. You could do it with a classical script.
  4. Hi, do you want to calculate the exact lux-amount (or what whatever unit you use for that) that comes into the building? Maybe you can share more details and pictures of what you are planing that we can get a better idea of it. regards
  5. Reducing the Nodes will have no big effect on the memory. One node weights about 10kB. What you can do to save memory is to store the network in a 2D symbol. Then insert a instance of this symbol into the Marionette object. Another advantage is that you can keep all Marionette objects sync without any effort. (This is shown in Webinar 1:
  6. It's very easy. I recommend you to watch the introduction videos: regards
  7. Hi jc4d, why not calculate it? actual_groupSize_x = 2 actual_groupSize_y = 5 targetSize_x = 1 targetSize_y = 3 ratio_x = targetSize_x / actual_groupSize_x ratio_y = targetSize_y / actual_groupSize_y If the the sub objects get not scaled properly it may not be your fault, scaling groups did not work properly. Don't know if this was fixed yet. regards, Patrick
  8. SetTextstyle changes the Texts. of an text object in the drawing. I tried to change the textstyle with obj selectors but this had no effect. h = GetObject ('MyTextStyle') kFontIndexSelector = 1360 kFontSizeSel = 1361 times_font_ID = GetFontID('Times New Roman') print (times_font_ID) #SetObjectVariableInt(h, kFontIndexSelector, times_font_ID) SetObjectVariableInt(h, kFontSizeSel, 5.0) What VW Version do you use? Did you change the custom textstyles in the resource browser/manager?
  9. Found this in my archives: Worksheets.vwx.zip
  10. Version 1.0.0

    417 downloads

    This network creates a simple but highly customizable shelf.
  11. Version 1.0.0

    117 downloads

    This Marionette Script creates a simple Hedge along a path. new Wrapper: 'Print Point Order' - helps you to orchestrate streams of points.
  12. Version 1.0.0

    78 downloads

    Here is a wrapper for creating honeycombs.
  13. Yes if a node does not provide the requested amount of output the last item is repeated as much as needed. It would be helpful to see what happens before the splitnode in your network. It looks as the Delete Dups node does not keep the order. I created a similiar node where I solved this problem with an Ordered Dictionary: remove_duplicate_items.vwx
  14. Hi Alan, try to multiply Random Number by the Number of shelves. This may only work with shelves that have the same number of articles.
  15. Version 6.1

    141 downloads

    This Node makes debugging more comfortable especially inside wrappers. You can select weather if the incoming values will be printed into a text object right under the node or into the python console. Time of the execution and type of the items can be printed optionally. I integradet the object type list from the appendix site to translate the type id into a string ( 5 = Polygon... ) You can also define filter conditions as Python statement in the oip of the node. Variable X is replaced by the values. Check out the example in the VWX.
  16. It would be great if we could highlight Python code in codeblocks.
  17. Hello gorrunyo, you can use SetSavedSetting to store the values in a xml that lies in the userfolder. If the values need to be stored in the doc you could use a record definition where you set the default values. regards
  18. Version 1.1.0

    140 downloads

    This Marionette Network generates vertical blinds. Nearly every part of the blinds can be modified by the parameters. Usage comments: - Put the Symbol 'Vertical Blind' into your drawing. - Now costumize it to your needs with the parameters in the object info palette: Total Length, Slat Height, Slat Width, Slat Angle and more (A Video will follow) - Finally you can define textures for parts of the slat by the generated classes: VerticalBlind-Slat VerticalBlind-Slat_Backing VerticalBlind-Rope VerticalBlind-Fixture VerticalBlind-String VerticalBlind-Beads Thanks to Dom for the PutByRefNode which made it a lot more easy.
  19. Thanks for your proposals. kCallTool_2D_Sym = -209 vs.SetActSymbol('SymName') vs.CallTool(kCallTool_2D_Sym)
  20. Hello, when a symbol is double clicked in the Resource Manager it gets attached to the cursor. Is it possible to recreate that behaviour by a VS command? I need this for a tool that creates a symbol. The symbol should be ready to insert when the dialog is confirmed.
  21. As I know the result appears when all nodes have finished their job. That means when you insert 10 * 5 second dalays (for each object) the whole script will take 50 seconds and create all objects at the end.
  22. Version 3.1.0

    34 downloads

    In this example you can find a node that returns a spectrum of colors and a Wrapper for creating random 3d Points. Saturation and Brightness can be changed in the OIP. Color_Range_Video.mov
  23. Hi Lilith, (SEL=TRUE) should do it. Notice that the Objects in the Symbol defintion will stay in old class while the instances get placed into 'spielt nicht...'
  24. When I select all Objs and run the script they all are put into 'spielt nicht mit'. Sorry if I can't follow you. Mayber you should check the criteria. You can easily create create them with the criteria dialog (click in the left corner of the script dialog):
×
×
  • Create New...