Jump to content
Developer Wiki and Function Reference Links ×

PIO control points parameters.


kiwi

Recommended Posts

As anyone develop PIO's with control points parameters?

I'm getting problems to set the parameters to other values than the default ones during the first plugin run... he seems that during the Run() those values are constants set to the defaults values.

I've try SetRField() inside a IsNewCustomObject() dependent statement, but the debugger shows no change on the PControlPoint01X and PControlPoint01Y values.

The PIO works find, but the first run is a disaster since the control points are not placed where they should... I need to rescue them manually and place then at they respective locations. There is no way to define a good default values (I have 4 control points): the PIO draws anywhere at any scale or any shape!

Thanks,

Link to comment

The PControlPoint01X and PControlPOint01Y are constants, and will not change while a script is running even if you call SetRField().

If you call SetRField and then call GetRField you should see that the parameter values have changed.

If you want to set them and then later in your script use the new values to draw your objects, then you can't refer to the PControlPOint01X constants. Use a variable, assign it the constant value, and then if you call SetRField you should assign the value to that variable also.

Jeff

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