Corner options for line in InDesign CS5 js


hi, cs5 update getting error message 'object  doesn't support property of method corneroptions' when use code cs4:

 

myroundcornerleftbottomverticalwhite = mydoc.graphiclines.add (mydoc.layers.item ("die"));
var mypathpoint = myroundcornerleftbottomverticalwhite.paths.item(0).pathpoints.add (mydoc.layers.item ("die"));
myroundcornerleftbottomverticalwhite.corneroption = corneroptions.rounded_corner;
myroundcornerleftbottomverticalwhite.cornerradius = myradius;

 

i not sure can use instead.

 

 

thank help.

yulia

check omv -- corner options changed cs4 cs5 plain 'corneroption' topleftcorneroption, toprightcorneroption, bottomleftcorneroption, , bottomrightcorneroption. it's possible set each corner value, instead of having them same.

 

you'll have try see 'top left', 'bottom right' etc. mean 1 single corner in graphic line ...



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support