Jayme McColgan Posted May 20, 2022 Share Posted May 20, 2022 (edited) hey everyone, I'm exploring a different side of VW plugins... i need to the ability to have the user draw a rectangles or polylines as a vso plugin. where should i start? Edited May 20, 2022 by Jayme McColgan Quote Link to comment
JBenghiat Posted May 20, 2022 Share Posted May 20, 2022 You can set the type of PIO in the plug-in manager to be rectangle or path based. In the case of the rectangular PIO, you have width and length as default parameters. The oddity with rectangles, is the origin is the center-left. For path-based plug-ins, the path is stored in a “path group” attached to the plug-in. You have vs commands for accessing the path group. You would either copy the polyline into your object, or parse the path’s vertices and use for your code. 1 Quote Link to comment
Jayme McColgan Posted May 20, 2022 Author Share Posted May 20, 2022 1 hour ago, JBenghiat said: You can set the type of PIO in the plug-in manager to be rectangle or path based. In the case of the rectangular PIO, you have width and length as default parameters. The oddity with rectangles, is the origin is the center-left. For path-based plug-ins, the path is stored in a “path group” attached to the plug-in. You have vs commands for accessing the path group. You would either copy the polyline into your object, or parse the path’s vertices and use for your code. well would you look that! also its kinda a bummer that the rectangular tool is center based, very odd looking... after trying them all out the path based plugin will probably be my answer for now. ill have to look into what vs commands i need to call to set the path as a visible object on the screen. thanks for the help! 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.