• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Convert Paragraph Text to Point Text | Extended Script

Contributor ,
Nov 14, 2021 Nov 14, 2021

Copy link to clipboard


Hi, I am trying to create a script that will allow creating point text from paragraph text. Everything is ready, but I ran into the fact that the anchor point works differently for them and when I create point text from paragraph text, it rises crooked

I have attached the code and screenshot where you can see the difference.
Having the same values, they are displayed differently.



var project = app.project;
var comp = project.activeItem;

var layer = comp.selectedLayers[0];

var layerName = layer.name;

var textProp = layer.property("Source Text");

var textDocument = textProp.value;

var textString = textDocument.toString();

var textPos = layer.property("ADBE Transform Group").property("ADBE Position").value;

var textAnchor = layer.property("ADBE Transform Group").property("Anchor Point").value;

var textTrans = layer.property("Transform");

var nexTextLayer = comp.layers.addText(textString);
//var ntexAnchor = nexTextLayer.property("ADBE Transform Group").property("ADBE Anchor Point").setValue(textAnchor);
var ntexPos = nexTextLayer.property("ADBE Transform Group").property("ADBE Position").setValue(textPos);
var ntexAP = nexTextLayer.property("ADBE Transform Group").property("Anchor Point").setValue(textAnchor);








Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 30, 2023 Jun 30, 2023

Copy link to clipboard



The Princess lied serenely in a glass coffin with her pale arms crossed over her chest. Her face was still so pure and childlike considering everything that had happened to her. Snow White had been a maiden – claimed the most beautiful of the land. However, that’s when the trouble started that sent her into a wakeless slumber.

Her evil stepmother, the queen, made a point to kill off Snow White so that she could remain the most beautiful in the land. She sent a huntsman to cut out the maiden’s heart, but he wouldn’t do such evil. Instead, he instructed her to run into the woods and never come back. Snow White did exactly this, coming upon a small cabin covered in thick cobwebs and an inch of dust. The cabin was home to seven dwarfs. They allowed her to stay, hidden from the outside world and the grasp of the evil queen. In the meantime, her supposed love interest, the Prince, searched for Snow White. He had met her at the castle’s water well and instantly fell in love. Eventually, the evil queen found Snow White’s whereabouts. She disguised herself and tempted Snow White with a bright red apple. The instant the maiden bit into the apple, she fell into a deep, wakeless slumber. The dwarfs hungered for revenge and managed to chase the wicked queen off an enormous cliff. However, Snow remained near dead. The only hope of revival was true love’s kiss.

The dwarfs watched the beautiful maiden as her chest rose up and down in the coffin. Suddenly, the brush rustled behind them and a figured emerged. The Prince walked to the casket and looked down at his love. A tear fell down his somber face. He removed the glass cover with gentle care and leaned toward the Princess. He lightly kissed her pink lips, but she didn’t wake. Didn’t even stir.

“Oh, move over!” Grumpy shoved the Prince aside and planted a wet one on Snow White’s forehead.

Instantly, Snow White’s breath quickened and she opened her bright eyes. “Oh, Grumpy!” she cried. “You’ve found me!” She hopped out of the glass coffin and grabbed onto Grumpy’s pudgy hand. They walked into the sunset together as the Prince cried out indignantly and the dwarfs gasped in surprise. Grumpy had been Snow White’s true love all along.





Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines