Jump to content
Developer Wiki and Function Reference Links ×

GetEvent | prevent plug-in object update - how to ?


Recommended Posts

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.

Link to comment

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 ]

Link to comment

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...