Musisback Posted September 22, 2010 Share Posted September 22, 2010 I Would like to know if there is and easy way to move the verticles from path PIO with the 2D selection tool. It is possible for example with the rectangle or any line PIO. Thank you Quote Link to comment
Miguel Barrera Posted September 22, 2010 Share Posted September 22, 2010 A path PIO can be edited with the 2D reshape tool just like you would a polyline/polygon. Line and rectangle PIOs can be edited with the selection tool. Quote Link to comment
C. Andrew Dunning Posted September 22, 2010 Share Posted September 22, 2010 Sleg - It has been a while since I worked with this, but here are some things I believe I learned when builing a Path PIO: 1) Make sure your PIO is Event-Enabled. 2) Set the following constants: kObjXPropSpecialEdit = 3; kReshapeSpecialEdit = 3; kObjXPropEditGroup = 1; kObjXPropEditGroupPath = 2; 3) Insert the following lines in the Initial Properties section of your code: gFlag := SetObjPropCharVS(kObjXPropSpecialEdit, Chr(kReshapeSpecialEdit)); (If I remember correctly, I needed this to enable the Path to be reshaped when the PIO instance is double-clicked.) gFlag := SetObjPropCharVS(kObjXPropEditGroup, Chr(kObjXPropEditGroupPath)); (This line was needed in order to allow the Path/Profile dialog to be skipped and the PIO to be reshaped in-place and not from the Path Edit view.) I hope this helps...and I'm sure someone will correct me if my memory is a bit foggy... Quote Link to comment
Assembly Posted September 22, 2010 Share Posted September 22, 2010 C. I have not had success with the path type object. Would you be so kind as to share an example?. Quote Link to comment
C. Andrew Dunning Posted September 22, 2010 Share Posted September 22, 2010 I have not had success with the path type object. Would you be so kind as to share an example?. Check out the PIOs at the bottom of The VectorScript Examples Page. One of them is a 2D Path PIO. All are unencrypted so you can get under the hood to see how things work. You might also find value in Charles Chandler's Intro To Script Events. Some of what he discusses there is relevant to Path PIOs. Good luck! Quote Link to comment
JBenghiat Posted September 23, 2010 Share Posted September 23, 2010 An addendum to Andy's event enabled comments. You can edit any path PIO with the 2D Reshape tool (at least starting with something like VW12) whether it's event enabled or not. If you are developing a path PIO and want it's default edit behavior (when the user selects Modify>Edit, double-clicks on the object, or selects Edit after right-clicking the object) to be an in-place reshape, you need to set the properties outlined above. As a default when you edit a path PIO, you will see a dialog asking you to choose between path and profile. The path edit screen shows only the path, like editing a symbol or a group. HTH, Josh Quote Link to comment
Musisback Posted September 23, 2010 Author Share Posted September 23, 2010 Thanks for the answers.. It would have been nice to be able to activate the verticles from the path PIO to act like the control points of build-in objects. (move with the selection tool) However, the methode above is very interesting also. Quote Link to comment
JBenghiat Posted September 23, 2010 Share Posted September 23, 2010 Sleg, Think of a path PIO as a polygon, but instead of drawing lines for sides it draws something fancier. So the edit behavior should work, just like polygons ? the selection tool moves the entire object, the reshape tool moves the vertices. The Adobe suite functions similarly, with separate selection tools for objects and vertices. -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.