Jump to content

Jayme McColgan

  • Posts

  • Joined

  • Last visited


3 Neutral

Personal Information

  • Location
    United States

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. well would you look that! also its kinda a bummer that the rectangular tool is center based, very odd looking... after trying them all out the path based plugin will probably be my answer for now. ill have to look into what vs commands i need to call to set the path as a visible object on the screen. thanks for the help!
  2. hey everyone, I'm exploring a different side of VW plugins... i need to the ability to have the user draw a rectangles or polylines as a vso plugin. where should i start?
  3. i ended up using importlib and it seems to be working fine. import importlib importlib.import_module(module) i do get warning of "pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly" Can't seem to figure out a way to fix that but ill write back if i find a way to suppress that. thanks to this forum for helping me https://forum.vectorworks.net/index.php?/topic/52965-pil-python-image-library-for-vw-2018/
  4. hey y'all, some of my plugins require the user to pip install some modules into a Python Externals folder that lives the user folder. That part is working great but the user then has to restart VW in order to use them... is there a way to reload VW without doing a full restart so it knows that those modules are now on the machine and can be used?
  5. got it... had to use vs.GetVPCropObject() and vs.GetBBox() to get the location of the crop and move it with some math...
  6. i know its probably staring me right in the face but i cant find how to take a new created Viewport (with a crop) and center that crop on a sheet layer
  7. a down and dirty way is to look at the site-packages folder... /Applications/Vectorworks 2022/Vectorworks 2022.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
  8. hey guys, I'm working on a cad currently and its really slow... I'm wondering if theres a way to see something similar to a console log of what operations VW22 is doing so i can see whats hanging up the system. want to see if it's a plugin i built or what.
  9. when you press a button it should return the number of the button pressed, you can then process the logic you need to from there. heres an example import vs dialog1 = 0 def start(): global dialog1 dialog1 = vs.CreateLayout('Pixel Map Exporter', False, 'OK', 'Cancel') vs.CreatePushButton(dialog1, 5, "Im a button!") vs.SetFirstLayoutItem(dialog1, 5) result = vs.RunLayoutDialog(dialog1, Dialog_Handler4) return(result) def Dialog_Handler4(item , data): ### Init Setup if item == 12255: pass ### Finished elif item == 1: pass ### Canclled elif item == 2: pass ### Push Buutton Pressed based off the item number you gave it when building the dialog layout elif item == 5: vs.AlrtDialog(str(f"Pushed button! im item #{item}")) return None
  10. yep that'll do it. and no i have another rabbit hole to dive down. lol thanks @klinzey
  11. so i was playing around with the Speaker Array Tool and on the last tab they have a box with a table with resizable headers. what do you use to make that? i want to add a table to one of my plugins that uses dialog boxes? i've attached a picture of it. I'm currently working with the vs.CreateListBox() but i don't think I'm on the right path...
  12. my current workaround is building an external script that opens a powershell as administrator and then runs all the nessacry deleting/creating of files. not a perfect answer but it works.
  13. ive found the built in ways to be very inconsistant... currently anytime i need to add a external python library i do a normal pip3 install and go find where it installed it which normally for me is in "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages". i then copy and paste the installed libraries into a "Python Externals" folder in the user folder and its worked every time so far. i think i have 5-6 libraries in there.
  14. @Myke i use the built in python functions to open files. i have a few plugins that are opening and creating files and I'm not using any of the VS functions to do that. what exactly are you trying to do and i can whip up an example for you.
  15. in my python externals folder i've added Pillow PIL and Requests (and the requested libraries for them). EDIT: well i guess i did'nt fully read the topic before posting... lol these 2 haven othing to do with vectors... sorry
  • Create New...