kiwi Posted April 15, 2005 Share Posted April 15, 2005 Set a boolean or a controlling variable for your event menu option ( I use a radio buttons parameter) , and set the event inside a IF (or case with more than one option). The update will always happen, but you can decide what part or functions of your code are running. Quote Link to comment
tom_shady Posted April 15, 2005 Author Share Posted April 15, 2005 i?m developing a plug-in object at the moment. i use a lot of parameters. the problem: how can i oppress / prevent the update of the object ? in the object properties - window i can specify -> script execution -> script specified event. the info says ... must first call GetEvent i can?t find any documentation for the GetEvent - call, function or what it is. the problem: im using to parameters that are multiplied: e.g i want to draw a grid using the parameter PNCOLUMN and PNROW (number of columns , number of rows) PNCOLUMN = 10; PNROW = 1000; (now i draw 10000 polygons) if i change PNCOLUMN = 100; PNROW = 100; the object has also 10 000 polygons but if i change PNCOLUMN first vectorworks updates the object with 100 000 polygons, an my old computer gives me a coffee-break. - even if i don?t need them ?? ---> i dont?t want vectorworks to update my object. i want a botton in the obj info palette, a menu-command or something like this called maybe update_vectorscript_object(); how to do this ? if there is a information or reference just post the link -- thanks Many Thanks for your effort. [ 04-14-2005, 12:00 PM: Message edited by: tom_shady ] Quote Link to comment
tom_shady Posted April 15, 2005 Author Share Posted April 15, 2005 kiwi - thanks for your reply. i know the workaround you mention. - i do it the same way at the moment, but i?m unsatisfied with this solution. isn?t there a solution as i am searching ? Quote Link to comment
Rick Francken Posted April 15, 2005 Share Posted April 15, 2005 the problem: im using to parameters that are multiplied: e.g i want to draw a grid using the parameter PNCOLUMN and PNROW (number of columns , number of rows) PNCOLUMN = 10; PNROW = 1000; (now i draw 10000 polygons) if i change PNCOLUMN = 100; PNROW = 100; the object has also 10 000 polygons but if i change PNCOLUMN first vectorworks updates the object with 100 000 polygons, an my old computer gives me a coffee-break. - even if i don?t need them ?? ---> i dont?t want vectorworks to update my object. i want a botton in the obj info palette, a menu-command or something like this called maybe update_vectorscript_object(); Hi Tom, You could create a Command or Tool plug-in that updates the polygon grid. This new plug-in's script would: 1. Get the handle of the polygon grid object 2. Get the values of PNCOLUMN and PNROW 3. Prompt the user for new Row and Column values 4. Update the polygon grid object's parameter record with the new values 5. Update the object Regards, -Rick Francken 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.