Jump to content
Developer Wiki and Function Reference Links ×

Changing the color of a PIO


Recommended Posts

How would I change the color of a Plug-In Object instance. Class color does not seem to work with inserted Plug-In Objects.

I can set up Parameters for the RGB color values in the Plug-In itself, but I do not want them to be available in the info palette. I can Hide them in the Info Palette easily enough, but I do not know how to access these parameters from an external script.

Can anyone shed light on this?

Link to comment

O.K.

I think I figured it out.

PROCEDURE GrayPlugIn;

{-------------------------------------------}
PROCEDURE MakeItGray(pioh:HANDLE);

BEGIN
SetRField(pioh,'New Window','Pen ColorR','30584');
SetRField(pioh,'New Window','Pen ColorG','30584');
SetRField(pioh,'New Window','Pen ColorB','30584');
ResetObject(pioh);
END;
{-------------------------------------------}

BEGIN
ForEachObject(MakeItGray,((R IN ['New Window'])));?
END;

RUN(GrayPlugIn);

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