Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

hi i want to create a shape with multiple point

$
0
0

My original text frame is:

first.jpg

All character make by using the pen tool point

I used that script(shows below) for first 2 character of that text frame which is create by the use of pen and pencil tool point:

 

var myTextFrame=myDocument.spreads.item(0).textFrames.add();

 

W = [["113.324296","212.731144"],["124.871437","212.731144"],["124.871437 ","205.148222"],["113.324296","205.148222"],];

 

myTextFrame.paths.firstItem().pathType = 1668051812;

 

W.splice(4,8,["152.405080","190.761163"],["152.405080","232.323775"],[ "156.821515","232.323775"],["156.821515","173.873789"],["153.555194"," 173.873789"],["152.090595","181.286355"],["144.653314","185.104713"],[ "144.653314","190.761163"],);

myTextFrame.paths.firstItem().entirePath = W;

myTextFrame.paths.firstItem().pathType = 1668051812;

 

but i am getting first both character as:

 

next.jpg

 

which is not write.

i want to the separate character which is make by the pen tool use such as above text frame. please provide me the write script for that type of text frame character. i am also given the path type.

 

 

Thanks


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>