Jump to content

Patrick Winkler

Member
  • Posts

    225
  • Joined

  • Last visited

Everything posted by Patrick Winkler

  1. Hello Lilith, other than in the most programming languages code blocks are nested by intendation in Python. (usualy by 4 whitespaces or one tab) I hope now it works: c='Apt Construction' def DoIt(h): vs.SetClass(h, c) vs.ResetObject(h) return() criteria="(INSYMBOL & INOBJECT & INVIEWPORT & (SEL=TRUE))" vs.ForEachObject(DoIt, criteria)
  2. Hello beanus, there is no node to get the mouse position. You could create it by yourself using the VS function. But the network might not work as you expect since you have to execute it with the mouse cursor. JardeM created a file with the predefined dialogs: DialogsPredefined regards
  3. Here is the script that got lost when forum was updated: vec_160414_MarionetteDataSet.vwx.zip
  4. hi jp, have you refreshed the resource manager?
  5. Hi Dom, I tried something similar some months ago. As I remember VW will turn the nodename into a python classname in which '/' is not allowed, the whitespaces get replaced by underscores. You can check this by exporting the network into a python file.
  6. Version 1.0.0

    68 downloads

    This script generates labyrinths. Just for fun.
  7. Hello Frog, I think this is the right node, have you tried selector 511? http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix#tex
  8. This script generates labyrinths. Just for fun. WebView Marionette_Labyrinth_v2017._V1vwx.zip
  9. The convertion was the problem. It's also necessary to update the resource manager. Thanks for your help.
  10. Hello, I tried to implement my own lib by putting the folder with the vwx files in the marionette defaults folder. Unlike in VW16 VW17 don't recocnizes my nodes. Can some help?
  11. I want to create unit tests for my library. If the test functions are executed in eclipse there should appear a warning because the vs functions are returning only dummy values (vs.py) in this case. I could just check if a function returns a known dummy value to know if it's executed in VW but thats not so nice. thanks
  12. Hello, how can I check if the script is executed in the VW environment. thanks
  13. Make sure to substract the little from the big circle. Can you provide a screenshot or file.
  14. I got it, in case some one wants to know how: # Init Column: ... vs.SetLBItemDisplayType(dialogID, kList_Brws, i, 1) # Icon Only ... # Add a Line ... vs.SetLBColumnOwnerDrawnType(dialogID, kList_Brws, i, col_color_idx, 1 ) # Solid Rect ... vs.SetLBItemFillForeColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) vs.SetLBItemFillBackColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) ...
  15. Hello, I'm failing to assign a color to a LB cell. It should look like this: # Init col_color_idx = vs.InsertLBColumn(dialogID, kList_Brws, i, strings.col_clr, 40) vs.SetLBItemDisplayType(dialogID, kList_Brws, i, 1) #xxx vs.SetLBColumnOwnerDrawnType(dialogID, kList_Brws, i, col_color_idx, OwnerDrawType_Enum.solid_rect ) ... instert_pos = 0 i = vs.InsertLBItem(dialogID, kList_Brws, instert_pos, '???') ... vs.SetLBItemFillForeColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) vs.SetLBItemFillBackColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) vs.SetLBItemPenBackColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) vs.SetLBItemPenForeColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex) What am I doing wrong? thanks
  16. Here is a node which should do that : create_sym.vwx
  17. But we stil not succeeded Now it returns the composed objs and the lines!
  18. I removed the statement which checks if the composed objs are type group and it seem sto work. MarionetteCompose_WIP_PW_v2016.vwx
  19. Thanks for the enhancement but with LNewObj you can get problems. The Compose command can create more than one object, thats the reason why I took the handles by: self.Params.out.value = get_Objs_by_Crit ('(VSEL=TRUE)')
×
×
  • Create New...