VvierA Posted November 16, 2013 Share Posted November 16, 2013 Hello, I made a PIO with a symbol inside. When I activate the PIO in the drawing there is ONE modification point so that the symbol can be moved individually and independently from the PIO itself. That's nice, but I'd like to have more modification points around the symbol, i.e. a bounding box or something like that. Can anybody give me a hint in which direction to research? VvierA Quote Link to comment
DeSignature Posted November 16, 2013 Share Posted November 16, 2013 I'm far from sure, but I think you would have to enter the mysterious world of Events ... Quote Link to comment
VvierA Posted November 17, 2013 Author Share Posted November 17, 2013 Studied the example but didn't find any clue yet. Any other suggestions? Quote Link to comment
JBenghiat Posted November 18, 2013 Share Posted November 18, 2013 Are you asking about control points? You can have as many control points as you like. You can set the position of a control point with SetRField, just like any parameter. The trick is you need to know which control point (if any) has been moved and to update the others accordingly. For this you need to use an event and state enabled object and vsoStateGetParamChng. http://developer.vectorworks.net/index.php/VS:vsoStateGetParamChng Note that the parameter index counts each control point's x and y coordinates separately, so if you look at the parameter list in the plug-in editor, you need to add 1 to the parameter numbers after every control point. -Josh 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.