Jump to content


  • Posts

  • Joined

  • Last visited


0 Neutral

Personal Information

  • Location
    United States
  1. Ah, thanks for this, Pat. Is there any way to show a live updating piece of info in a script? I'm imagining something like the Tape Measure Tool where it updates in real-time as you move the mouse. -Arshan
  2. Hi All, In the Vectorscript Function Reference, the example code seems to imply it would allow a live updating message readout of mouse coordinates while the mouse is moved around until a key is pressed, ending the script: http://developer.vectorworks.net/index.php/VS:GetMouse However, when I try using this code (I tried both the VectorScript and Python version - both with same result) it has no actual message output until I click a key ending the script. Am I missing something? Eg. is there some flag that is needed for the script to render during a loop instead of only after completion? Or am I misunderstanding the purpose of the example script, and it is supposed to only create the output after the script is done running? Thanks, -Arshan
  3. Odd - I just performed the same test and have the viewport version scale the same as the design layer version (ie. in the scaled viewport the world and page-based symbols appear different sizes)
  4. Thanks, PatW. I tried using vs.SetObjectVariableBoolean(h, index, status) and it doesn't seem to do anything. I double checked the function call by targeting a PIO specific object variable instead which worked, so it looks like the Symbol Page Based flag can't be applied to the PIO. Also, by the way - in my tests, page-based symbols did take viewport scale into account. ie. they would size themselves based page-based units on a sheet layer even when viewed through a viewport with a non-1:1 scale.
  5. Thanks for this, Orso. I did already setup the Layer Scale Dependency for design layer changes, but you are correct that Viewports still cause a problem! Hadn't tested that yet until you mentioned it! I'd like to try setting the Page Based symbol flag you mention, but how would I do that? I'm unclear on what function call I can use to try to set that flag.
  6. Thanks PatW! I was wondering if there was some kind of flag to force "page" units in the script, but this should work fine!
  7. Hi All, I'm writing a Plug-In Object that I'm using to draw some annotating labels. Is there a way to have the Plug-In draw objects using "Page Based" units? I know a fixed symbol can be defined as Page Based or World Based. Is there a way to do something similar with objects drawn by a Plug-In? -Arshan
  8. Thanks so much for the quick response, Robert! This looks like exactly what I was looking for. Will give it a try soon! -Arshan
  9. Hi All, I'm fairly new to Vectorscript (and Vectorworks in general) so please let me know if I've missed something obvious in the documentation. I've created a Linear plug-ing object and it was great that Vectorworks let's me do all the drawing in a local coordinate space without worrying about rotation. However, I am now looking to have the script scale the drawn object with respect to the global coordinate system. Is there a way to use the plug-in object's Vectorscript to do any of the following: 1. Access the "Rotation" value in the object instance's Object Info Palette? 2. Transform the object relative to the global coordinate system from within it's Vectorscript? 3. Any other way to access any info about the object instance's relationship to the global space? I'm happy to use whatever info I can get to do the necessary calculations, just need some way to get info about the objects position. Thanks in advance! -Arshan
  • Create New...