Jayme McColgan Posted December 6, 2021 Share Posted December 6, 2021 hey guys, i want to explore an idea and want to see if anyone has done something like this. i sometimes need a way to update all viewports locally on another computer so i don't lock up my computer, which consists of me opening my VW file on another (super beefy) computer and rendering all viewports from there. thats all fine and dandy but I'm trying to automate that so when its done it would save and close the file and let me know its done. i know VSS has this feature but i need to be able to do it locally sometimes. questions i have: - is it possible for a plugin to open a VW file on a remote computer and tell it to "Update All Viewports"? - how do you know when the "Update all viewports" process is done? (i didn't really see anything in the VS references for it) - Could i have VW launch a script when its opened? (i could have a computer open files from a watch folder via an external python script but idk how to have VW start the update process once the file is open.) Quote Link to comment
Vectorworks, Inc Employee Dave Donley Posted December 6, 2021 Vectorworks, Inc Employee Share Posted December 6, 2021 Hello @Jayme McColgan Calling SetPref(596, TRUE); might work to make VW wait until all viewports have been rendered. Could try calling do menu text to run the update all viewports menu command from a script, then wait, then run save file. (My scripting is not very developed, used to using C++ SDK but these hooks might help you) Quote Link to comment
Pat Stanford Posted December 6, 2021 Share Posted December 6, 2021 Are you on Mac? If so, then an AppleScript that sends Vectorscript commands to VW can probably do what you need. If you are on Win, I think you might be out of luck to automate the whole process. Would this need to be started from a file you have open in VW? Quote Link to comment
herbieherb Posted December 10, 2021 Share Posted December 10, 2021 Here is how you woul'd send Vectorscipt/Python commands from windows: Quote Link to comment
Jayme McColgan Posted December 10, 2021 Author Share Posted December 10, 2021 On 12/6/2021 at 6:52 PM, Pat Stanford said: Are you on Mac? If so, then an AppleScript that sends Vectorscript commands to VW can probably do what you need. If you are on Win, I think you might be out of luck to automate the whole process. Would this need to be started from a file you have open in VW? most of our files will start on a mac then i would send the file to a windows computer that sits in our server room to do the rendering. I'm going to give the suggestion that @herbieherb suggested and see how that goes. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.