Clip Property kOfxImageClipPropDisplayTimeOffset#67
Open
fxtech wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
Open
Clip Property kOfxImageClipPropDisplayTimeOffset#67fxtech wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
fxtech wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
Conversation
garyo
reviewed
Nov 12, 2019
include/ofxImageEffect.h
Outdated
| - Property Set - clip instance (read only) | ||
| - Default - 0 | ||
|
|
||
| This value should be added to the internal frame number when displayed in a plugin user interface |
Contributor
There was a problem hiding this comment.
Perhaps: "Plugins should add this value to internal OFX frame numbers when displayed in a plugin user interface, so the user will see the same frame numbers as they see in the host's UI."
Contributor
Author
|
Yes. For example, if you have a Session in Silhouette that starts at frame
1001, and you launch the Mocha Pro OFX UI, it shows the frame range
starting at 0. By adding this value, it can show the same frame numbers.
…On Tue, Nov 12, 2019, 5:38 PM GaryO ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In include/ofxImageEffect.h
<#67 (comment)>:
> @@ -929,6 +929,16 @@ then the plugin can detect this via an identifier change and re-evaluate the cac
*/
#define kOfxImagePropUniqueIdentifier "OfxImagePropUniqueIdentifier"
+/** @brief Clip property which indicates the display start frame of the clip
+
+ - Type - double X 1
+ - Property Set - clip instance (read only)
+ - Default - 0
+
+This value should be added to the internal frame number when displayed in a plugin user interface
..., so that the user sees the same frame number as they see in the host
UI. (?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#67>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM64ASENPG7GUZ63QDYSZ3QTM5AZANCNFSM4JMILA4Q>
.
On Tue, Nov 12, 2019, 5:38 PM GaryO ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In include/ofxImageEffect.h
<#67 (comment)>:
> @@ -929,6 +929,16 @@ then the plugin can detect this via an identifier change and re-evaluate the cac
*/
#define kOfxImagePropUniqueIdentifier "OfxImagePropUniqueIdentifier"
+/** @brief Clip property which indicates the display start frame of the clip
+
+ - Type - double X 1
+ - Property Set - clip instance (read only)
+ - Default - 0
+
+This value should be added to the internal frame number when displayed in a plugin user interface
..., so that the user sees the same frame number as they see in the host
UI. (?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#67>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM64ASENPG7GUZ63QDYSZ3QTM5AZANCNFSM4JMILA4Q>
.
|
Contributor
|
Perfect. Can you update the PR?
…--Gary
On Tue, Nov 12, 2019, 8:06 PM Paul Miller ***@***.***> wrote:
Yes. For example, if you have a Session in Silhouette that starts at frame
1001, and you launch the Mocha Pro OFX UI, it shows the frame range
starting at 0. By adding this value, it can show the same frame numbers.
On Tue, Nov 12, 2019, 5:38 PM GaryO ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In include/ofxImageEffect.h
> <#67 (comment)>:
>
> > @@ -929,6 +929,16 @@ then the plugin can detect this via an identifier
change and re-evaluate the cac
> */
> #define kOfxImagePropUniqueIdentifier "OfxImagePropUniqueIdentifier"
>
> +/** @brief Clip property which indicates the display start frame of the
clip
> +
> + - Type - double X 1
> + - Property Set - clip instance (read only)
> + - Default - 0
> +
> +This value should be added to the internal frame number when displayed
in a plugin user interface
>
> ..., so that the user sees the same frame number as they see in the host
> UI. (?)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#67
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAM64ASENPG7GUZ63QDYSZ3QTM5AZANCNFSM4JMILA4Q
>
> .
>
On Tue, Nov 12, 2019, 5:38 PM GaryO ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In include/ofxImageEffect.h
> <#67 (comment)>:
>
> > @@ -929,6 +929,16 @@ then the plugin can detect this via an identifier
change and re-evaluate the cac
> */
> #define kOfxImagePropUniqueIdentifier "OfxImagePropUniqueIdentifier"
>
> +/** @brief Clip property which indicates the display start frame of the
clip
> +
> + - Type - double X 1
> + - Property Set - clip instance (read only)
> + - Default - 0
> +
> +This value should be added to the internal frame number when displayed
in a plugin user interface
>
> ..., so that the user sees the same frame number as they see in the host
> UI. (?)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#67
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAM64ASENPG7GUZ63QDYSZ3QTM5AZANCNFSM4JMILA4Q
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#67>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABCFR522EY3T2KXXHQ5Q4LQTNHKBANCNFSM4JMILA4Q>
.
|
Contributor
|
Sorry isn't this something that should be in timeline suite? |
Contributor
Author
|
This could probably be done with the Timeline suite. I thought adding a property is less "heavy" than adding a function to a suite. Would be good to discuss. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #58
I added a #define and description for kOfxImageClipPropDisplayTimeOffset.
A plugin can query this read-only clip property to determine the clip starting frame number in the environment's user time domain. ie if the clip starts at frame 1001, this property would return 1001. This value should be added to time values for purposes of display in a custom user interface that shows frame numbers (ie. a special preset browser or custom player).