| 475 | } |
| 476 | |
| 477 | static pag::TextPathOptions* GetTextPathOptions(const AEGP_StreamRefH& streamHandle) { |
| 478 | auto pathOptions = new pag::TextPathOptions(); |
| 479 | pag::ID maskID = GetValue(streamHandle, "ADBE Text Path", AEStreamParser::MaskIDParser); |
| 480 | |
| 481 | pathOptions->path = new pag::MaskData(); |
| 482 | pathOptions->path->id = maskID; |
| 483 | if (pathOptions->path->id <= 0) { |
| 484 | delete pathOptions; |
| 485 | return nullptr; |
| 486 | } |
| 487 | pathOptions->reversedPath = |
| 488 | GetProperty(streamHandle, "ADBE Text Reverse Path", AEStreamParser::BooleanParser); |
| 489 | pathOptions->perpendicularToPath = |
| 490 | GetProperty(streamHandle, "ADBE Text Perpendicular To Path", AEStreamParser::BooleanParser); |
| 491 | pathOptions->forceAlignment = |
| 492 | GetProperty(streamHandle, "ADBE Text Force Align Path", AEStreamParser::BooleanParser); |
| 493 | pathOptions->firstMargin = |
| 494 | GetProperty(streamHandle, "ADBE Text First Margin", AEStreamParser::FloatParser); |
| 495 | pathOptions->lastMargin = |
| 496 | GetProperty(streamHandle, "ADBE Text Last Margin", AEStreamParser::FloatParser); |
| 497 | return pathOptions; |
| 498 | } |
| 499 | |
| 500 | template <typename T> |
| 501 | static void ModifyPropertyKeyframe(pag::Property<T>* property) { |
no test coverage detected