Jump to content
Developer Wiki and Function Reference Links ×

Show/Hide & Activate/Deactivate parameters In Obj Info Palette


Recommended Posts

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

Link to comment

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 by hippothamus
Link to comment
  • 3 weeks later...

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...