LarryO Posted June 13, 2013 Share Posted June 13, 2013 Is the means to show/hide and activate/deactivate parameter fields (in the object information palette) part of the Vectorscript command set? Or does one need to utilized the SDK to enable these types of functions? If it is in Vectorscript, what class of function is it? Are they Compiler related conditions like using IF? ???? Larry Quote Link to comment
Dieter @ DWorks Posted June 13, 2013 Share Posted June 13, 2013 If your plug-in is event-enabled, then you can do that. Take a loot at developer.vectorworks.net to find some usefull info. Quote Link to comment
Hippocode Posted June 13, 2013 Share Posted June 13, 2013 (edited) No need for SDK. If you want to show/hide/enable/disable parameters of your plugin you need to use the following code in event 41: 41: BEGIN vsoWidgetSetVisible(paramID,BOOLEAN); vsoWidgetSetEnable(paramID,BOOLEAN); vsoSetEventResult( -8 {kObjectEventHandled} ); END; http://vectorlab.info/index.php?title=Events http://developer.vectorworks.net/index.php?title=VS:Parametric_Custom_Shape_Pane_Popup Another option is this: http://developer.vectorworks.net/index.php?title=VS:EnableParameter Edited June 13, 2013 by hippothamus Quote Link to comment
Miguel Barrera Posted June 13, 2013 Share Posted June 13, 2013 Whether the pio is event enabled or not, you can use these commands, which date back before event 41: SetParameterVisibility & EnableParameter If you do not want the parameter to show at all in the new pio dialog then prefix the parameter name with 2 underscores, as in __ParameterName. If you want to show it at any other time then set SetParameterVisibility to true. Quote Link to comment
LarryO Posted June 30, 2013 Author Share Posted June 30, 2013 Thanks guys. I successfully utilized the SetParameterVisibility to hide or display parameters of my beam coping plug-in. By hiding optional parameters the object info palette is more readable for the majority of the plug-in's instances. Larry 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.