Jump to content

Determining paste-in-place during states


JBenghiat

Recommended Posts

I have a PIO that reshapes on move. If the use duplicates or copy/pastes the object, it should not reshape.

 

My solution for this is to flag as new via a hidden parameter during the kObjectCreated state, and if new, ignore the move.

 

The problem is that pasted objects first have a move event state trigger that shows no move, and then has a second move event with the offset. I had been checking to see if the move matrix is identity, and if so not resetting the new flag, however, if the user pastes in place, Vectorworks doesn't issue the second move event.

 

Does anyone have a solution for handling move-after-paste?

 

Or is that first move event on paste a bug?

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...