Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Programming Effects API
Martin.Hill [Avatar]
Newbie Joined: Aug 27, 2019 12:16 Messages: 4 Offline
[Post New]
Hello

I'd like to write an 'effect' that would pan the frame, to be used like the effect 'Zoom In' that can be placed on the Fx track and so apply to a sequence of clips and images. This would be more useful to me when assembling screengrab clips than having to edit keyframe positions and zooms for each one.

I'm fairly happy with programming in C etc, I just need to know what I'm programming against, eg APIs and how to install new effects.

Can anyone point me at suitable documentation? Google and duckduck fail me, but then I seem to have great difficulty finding solid docs for powerdirector "-(

Thanks

Martin
optodata
Senior Contributor Location: California, USA Joined: Sep 16, 2011 16:04 Messages: 8630 Offline
[Post New]
To my knowledge, Cyberlink hasn't ever published those specs.

However, intrepid forum user GodfreyZA has figured out how to create many kinds of PD objects with his free PDTemplatePacker app. He also has many helpful threads here on the forum, such as this one. Hopefully you'll be able to create your desired content with his tools!

YouTube/optodata


DS365 | Win11 Pro | Ryzen 9 3950X | RTX 4070 Ti | 32GB RAM | 10TB SSDs | 5K+4K HDR monitors

Canon Vixia GX10 (4K 60p) | HF G30 (HD 60p) | Yi Action+ 4K | 360Fly 4K 360°
ynotfish
Senior Contributor Location: N.S.W. Australia Joined: May 08, 2009 02:06 Messages: 9977 Offline
[Post New]
Hi Martin -

I agree with optodata - if anyone could "program" such a thing, or turn it into a modifiable template, it would be Godfrey.

I wouldn't have a clue about "programming" but it's pretty easy to use the features in PDR to efficiently get what you want.

By first setting position & scale keyframes for one image/video, those keyframe attributes can be copied and pasted to other media (assuming aspect ratio & duration are the same). Once pasted they can be modified to suit.

Each path can be saved as a custom path & each PiP element can be saved as a template for later use.

Some examples are shown here. I started with one zoom & pan path &, by copying & pasting keyframe attributes then modifying, fairly quickly turned that into 6 variants.



The images (20 sec duration) in the video are 3840x2160 & zoomed to 1920x1080. The paths are all on DirectorZone for download:
Zoom Pan 1 - https://directorzone.cyberlink.com/detail/176476100
Zoom Pan 1 (ease) - https://directorzone.cyberlink.com/detail/176476101
Zoom Pan 2 - https://directorzone.cyberlink.com/detail/176476102
Zoom Pan 2 (ease) - https://directorzone.cyberlink.com/detail/176476103
Zoom Pan 3 - https://directorzone.cyberlink.com/detail/176476104
Zoom Pan 3 (ease) - https://directorzone.cyberlink.com/detail/176476105

Cheers - Tony
Visit PDtoots. PowerDirector Tutorials, tips, free resources & more. Subscribe!
Full linked Tutorial Catalog
PDtoots happily supports fellow PowerDirector users!
Martin.Hill [Avatar]
Newbie Joined: Aug 27, 2019 12:16 Messages: 4 Offline
[Post New]
Thank you both very much for taking the time to consider this.

I'm reasonably happy with setting keyframe position/zooms for each clip, but this is a pain to do for lots of small clips. What I'd like to do is something like the attached - there is this zoom effect and you can use it across a collection of clips, but it doesn't have a pan/position setting. You can get an 'auto pan' from the newblue collection but it doesn't seem very controllable.

Zoom In effect

So it's possible but I can't see if anyone's actually done it. I shall ask Godfrey but if you have any ideas they'd be very welcome. I'm currently editing keyframes and then copying them across clips but it's a pain to do and a real pain to change.
[Thumb - Capture.PNG]
 Filename
Capture.PNG
[Disk]
 Description
Zoom effect
 Filesize
60 Kbytes
 Downloaded:
2 time(s)

This message was edited 1 time. Last update was at Aug 30. 2019 13:29

optodata
Senior Contributor Location: California, USA Joined: Sep 16, 2011 16:04 Messages: 8630 Offline
[Post New]
Quote I'm currently editing keyframes and then copying them across clips but it's a pain to do and a real pain to change.

There's a lot of details in your project that I don't know about, but one way of doing this is to select each set of clips that you want to apply the pan/zoom effect to, and then use Range Produce. Replace the separate timeline clips with the produced version, and then you can use Paste Keyframe Attributes (copied from a master clip) to apply the same pan/zoom settings.

If you want to change up any of the settings, like starting or ending locations, you'll only need to change them once rather than trying to match them across the individual clips.
Martin.Hill [Avatar]
Newbie Joined: Aug 27, 2019 12:16 Messages: 4 Offline
[Post New]
Thanks yes the range produce is another workaround, but again it's fiddly and if you want to do any cutting/pasting then you have to do redo it again.
Powered by JForum 2.1.8 © JForum Team