michaelk Posted July 6, 2021 Share Posted July 6, 2021 Is it possible to define a control point in a plug in but not have the handle visible until it is needed? Quote Link to comment
C. Andrew Dunning Posted July 6, 2021 Share Posted July 6, 2021 3 minutes ago, michaelk said: Is it possible to define a control point in a plug in but not have the handle visible until it is needed? Yes. Use SetCntrlPtVis (something along the lines of "SetCntrlPtVis(ghParm,1,FALSE)"). Quote Link to comment
michaelk Posted July 6, 2021 Author Share Posted July 6, 2021 Thanks! Does the plug-in need to be event aware to use this function? Quote Link to comment
C. Andrew Dunning Posted July 6, 2021 Share Posted July 6, 2021 I believe so... Quote Link to comment
Pat Stanford Posted July 6, 2021 Share Posted July 6, 2021 I don't think it does require an event enabled object. I think I used this a long time ago in a script (possibly the DanJBolt??), and I have never written an event enabled object. Also, there are comments from Joshua and Julian in 2006 and 2007 on the Dev site. I don't think Event Enabled was around then. Before you go to the trouble to make it event enabled (Unless there are other reasons for EE), test it first and see. Quote Link to comment
michaelk Posted July 6, 2021 Author Share Posted July 6, 2021 🤓 The first step in “going through all the trouble“ would be learning how to write event enabled plug-ins. Thanks Pat and Andy. I’ll try that when I get back to a computer. 1 Quote Link to comment
Jesse Cogswell Posted July 6, 2021 Share Posted July 6, 2021 The plug-in does not need to be event-based to hide control points. I usually have a boolean parameter to set whether the control point is "active", then just use SetCntrlPtVis(objHd,<control point #>,Pboolean) to show or hide it. Works like a charm. 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.