Jump to content

"External" control point

Recommended Posts

Hi to all,

i can't find the function for activate a "control point" freely movable by user. I'll try to explain better.

I have a linear object, so (in 2D) i have 2 control points for start and finish. I need a third control point, visible in 2D, and i need to know x and y of this point (like the positioning of text in space tool).

How can i do it?

Thanks, and sorry for my english, i hope you understand what i mean.


Link to comment

You need to add a Control Point parameter to the plugin definition. By default they are named in concecutive order so the first one will be named "ControlPoint01". You can get the x & y location either by calling the constants PCONTROLPOINTO1X & PCONTROLPOINT01Y or through the GetRField procedure with 'ControlPoint01X' & 'ControlPoint01Y' as the field names.

As with any other parameter, the x & y values will be visible in the Object Info Palette (OIP) and to hide it you will need to set the parameter visibility to FALSE.

Link to comment
  • 1 month later...

Is it possible to hide the control point parameter from the "default parameters" showed when I click the tool bar button (attached image)? I can't rename it so in this case I can't use "__name" to hide it, and if I use "SetParameterVisibility" it only hide the parameter from the OIP!

Edited by andreavw
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.

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...