PeterT Posted June 14, 2007 Share Posted June 14, 2007 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? Quote Link to comment
PeterT Posted June 15, 2007 Author Share Posted June 15, 2007 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); 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.