Jump to content

mattao

Member
  • Posts

    54
  • Joined

  • Last visited

Everything posted by mattao

  1. I just can't succeed in "reseting" the numbering system of my issue data. I'd like to "delete" that hidden "Title Block Issue Data-x" but can't find how to access it. Could you help?
  2. Hi I just built this node to be able to "marionette" the "Crit" of Obj by Crit You have to put the "criteria" text in the String Node. It will be passed to the new node and command his action. By so you could act on the "criteria" string using marionette text and string nodes. It seems to work. Hope it will be useful. I am pretty sure DomC has published something like that but cannot get my hand on it. Hi DomC. I am a fan of your work. #COMMAND;REFFILE;[VWLibDef]/Input\Objs by Crit Mat.py; #Modified August 2018 @Marionette.NodeDefinition class Params(metaclass = Marionette.OrderedClass): #APPEARANCE #Name this = Marionette.Node( 'Objs by Crit Mat' ) this.SetDescription( 'Returns a list of objects meeting the input criteria' ) #Input Ports stringIn = Marionette.PortIn('', 's') stringIn.SetDescription( "The input string" ) #Output Ports obj = Marionette.PortOut('h') obj.SetDescription('The list of objects in the document that match the criteria') #BEHAVIOR def RunNode(self): #inputs stringIn = self.Params.stringIn.value #script out_list = [] def Add_Handle(obj): out_list.append(obj) vs.ForEachObject(Add_Handle,stringIn) wordTofind = "SEL=TRUE" searchInlist = stringIn searchInlist = searchInlist.replace(" ", "") if wordTofind.lower() in searchInlist.lower(): new_list = [] parents_list = [] for e in out_list: p = vs.GetParent(e) if vs.GetType(p) == 11 and p in out_list: parents_list.append(p) pass else: new_list.append(e) for g in parents_list: if g in new_list: new_list.remove(g) #outputs self.Params.obj.value = new_list else: #outputs self.Params.obj.value = out_list
  3. It's not easy... but not so hard You've got to copy the marionette object to use it AND the folder it's linked to. The marionette object call for a folder ( like the Baume folder in some of the DomC provided files). Copy the folder first... then the marionette object, otherwise it call an inexistent folder and crash. On my files I succeed in linking the marionette object to other folders containing other symbols AND modifying the marionette object "control geometry" to be as needed. I"ve succesfully obtain "foliage like" effects by doing so Please pardon my english ... i am not very fluent in these language
  4. I got this script there I've done by working on your file. ( see attachment). ( hope you don't mind, let me know) I succeeded on implementing the rotations. z axis for the symbol angle and a 3D rotate too. I got some unstabilities but it doesn't bother me as it's just a work in progress. I plan to do some kind of ivy leaves. I noticed your script is not really efficient for near vertical surfaces, cos the symbols are put using a x,y pattern, I think I got a way to avoid it. ( by turning an the control surface to be near horizontal before executing the script, then get it back where it was.)... not so neat but efficient I think. I plan to work on a way to execute this script in a volume ( a 3D grid to replace the 2 grid you used). I thought of building a 3D grid of 3Dloci according to the control object dimensions, and put a symbol on each 3Dloci. but I can't find a good way to see if a loci is inside or outside a 3D volume.... I thought of trying a boolean on each loci but it seems senseless. Got to go now to a more money productive work. See ya. Thanks for your help. Untitled 26 copie.vwx
  5. I've just tooled with it and with DomC help i succeed in obtaining random scaled symbols on the 3D form. ( neat) I'd like to play with the "angle" PortIn of the "symbol 3D v01" node. Does it take only real or int values? I assumed it could act on the "Rotate 3D" value of the 3D symbol object, therefore i thought it would take 3 values. It seem to me I have to generate the 3D symbols and then 3D rotate them? Is that the best way to do it?
  6. mattao

    Scale Symbol

    Can't find the symbol scale node attached there.... maybe got to change my glasses?
  7. I can't follow your link Alan. Would you please refresh it? Thanks
  8. Hi I added a function to move the print through the info palette of the Marionette object. So I can have as many prints as I want and see all the "printed" values at once
  9. I got to add i succeed in what I was looking for just by Refreshing my PIObject through a modified version of your script. But I didn't learn how to trigger a PIO event from applescript or python so I still hope an answer. Thanks
  10. Ok the script you provided works fine, and I think it will do what I need. Is there a way to trigger a PIO event from applescript? Or from python? My PIO as a button on the info palette that trigger a specific script. I'd like to auto trigger this script every 2 seconds.
  11. Hi think you just gave me the exact thing I needed. Thanks
  12. Thank you michaelk I was looking to do that inside the python script using a sched or time event. I used time.sleep (300) but doing that Works freeze until the 300 seconds are complete. ( not what I am looking for.)
  13. Hi I'd like to program a python script to act every 5 minutes. Meanwhile he is sleeping i'd like to be able to do something else. I've downloaded web link image, it works perfectly. I'd like to add a button to Autoupdate the image every 5 minutes if the object is selected. How to do that? Thanks
  14. Hi I pull date date from a worksheet and they are number converted. What is the conversion? How to get my user send a date range to a marionette script? Thanks
  15. Hi everyone I am curious if I could implement a SWAP object based on camera position. It could help to automatically swap symbol from high def version to low def version if they are "far" from the camera. A low def Ivy could become full 3D as you come near of it. A textured box for a fridge could get more detail as you zoom in. It seem easy to swap the symbols but I can't figure to get the point of view center. Thanks Mat
  16. Hi I got a "general quantity" worksheet refering to more than 20 "secondary" worksheets ( one for concrete, one for roof, one for window...) I'd like to be able to "open" the secondary's from the "general quantity" WS. I thought of a script. One of my cell contain the following formula: ='08-Quantitatif Toiture':D7 I'd like to right click the cell to open the '08-Quantitatif Toiture' Is there a way to do so? Thanks
  17. I noticed a very large difference between refreshing times of a worksheet when I change a criteria ( refresh instantly ) and ask for recalculate ( got the time to check for mail ) Is that normal? Plus: I'd like to have a shortcut to access the worksheet database criteria
  18. May I suggest to VW developers to add a contain choice in the class CRITERIA?
  19. It's now perfectly working on a huge file too... :-) Very pleased Mat there
  20. Ok it's now working... I updated to SP2 I will check for a huge file Thanks a lot for your help
  21. Thanks for your real fast answer, BUT It's not working there, the criteria return 0 objects as soon as I hit "recalculate" I am now updating to SP2....
  22. Hi everyone, I've produced an heavy VW file and I use the new collapsible classes. I got classes such as 12 Tiles_Green_30x60 and 12 Tiles_Grey_30x30... I'd like to filter my worksheet by A PART of the class name... like all the classes containing 12 Tiles in there class name. Could you help? Thanks
×
×
  • Create New...