Re: Document size for FxPlug generator
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Garrick, What are you trying to do? In general, knowing the project size isn’t too helpful. For example, in Motion, the user can turn on “Show Full View Area” and it will show areas outside of the project bounds. I don’t know of a way for a generator to get its width and height. (And keep in mind that the user can change them and they can be animated.) Even when using something like the Analysis API, you aren’t guaranteed that every frame is the same size. The input to your filter could be a particle system, or even a piece of footage that is being dynamically scaled or cropped, or has other filters applied to it which change size over time. Darrin
On Apr 25, 2023, at 1:03 PM, Garrick Meeker via Pro-apps-dev <pro-apps-dev@lists.apple.com> wrote:
Is there a trick in FxPlug4 to replace FxCustomParameterActionAPI_v2 -documentBounds? For reasons not worth going into, I need the maximum frame size when handling a button press, sort of a calibration to set other parameters. When applied as a filter I’m using the analysis API to just get the dimensions of the current frame. Is there any way to access the Width / Height parameters I see for generators in Motion? The best I can come up with is a hidden point parameter.
Other APIs have similar concepts to -documentBounds. In AE, there’s in_data->width and in OpenFX the project dimensions can be queried.
Any other suggestions?
Thanks, Garrick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/dcardani%40apple.com
This email sent to dcardani@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Darrin Cardani via Pro-apps-dev