sandertb Posted January 24, 2022 Share Posted January 24, 2022 Hi all, This might be a stupid question, but I am wondering if it is possible to remove or disable the Degree field in the OIP of a 3D path object. I have created a tool that draws a symbols along the path, but if the degree in the OIP is edited the path is ruined, hence why I want to disable it. Does anybody have an idea? Quote Link to comment
JBenghiat Posted January 24, 2022 Share Posted January 24, 2022 Possibly. Your plug-in will need to be event enabled. In the init event, call vs.SetObjPropVS(88, True) This disables the polygon edit widget. I don't know if it works on NURBS paths. If it does, it would hide the entire section where you edit points. Quote Link to comment
sandertb Posted June 8, 2022 Author Share Posted June 8, 2022 Hi Joshua, I finally had some time to come back to this tool, hence my late reply. I set the property when the eventcode == kObjOnInitXProperties, but unfortunately this did not seem to work. Do you perhaps have any other clue? Many thanks! Quote Link to comment
JBenghiat Posted June 8, 2022 Share Posted June 8, 2022 If that didn't work, then there isn't a way to suppress the NURBS vertex info. Are you copying the path from the path group? If so, then as an alternative you can iterate over the path and use the vertex locations to draw a new NURBS curve in your object code. That way it really doesn't matter if someone changes the degree. I think the only other option would be to make the object a point object and use a custom tool to define the path (point objects can still have a path and profile group). In this solution you loose an easy way to edit the path, though. 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.