Daniel,
You mention that you are working on an audio generator and that you’ve written an FxGenerator. It’s not clear what you’re trying to accomplish, but FxPlug doesn’t currently support audio reading or writing at all. To answer your questions:
1) You can get the current playhead time by using the -[FxCustomParameterActionAPI currentFxTime:] method.
2) The XML should contain the UUID of your generator. You may have to decode the data before you can get to the UUID, though. I haven’t looked at FCPX XML in a while.
3) You cannot hide the controls of anything other than your own generator.
4) I’ll have to ask about this one.
5) If your generator is not adding images, you shouldn’t be using a generator. That is their sole purpose. Having said that, no, there’s no way to tell that a preview is being rendered vs. a regular render, nor is there a way to tell which preview is being rendered.
6) You can right click next to the parameter’s name to bring up the menu which will allow you to publish the button. It’s a little confusing, unfortunately.
Darrin On May 16, 2017, at 7:51 AM, Daniel Walz < email@hidden> wrote:
Dear fellow developers,
currently I am working on an audio generator plugin. So far I created a FxGenerator. But I have a few questions:
1) Is there an API to get the current state of playback, like playing, playhead and selected clip?
2) Is there a way to mark a generator clip so I can recognise it in the XML later on, so I can create a compound clip around the generator and the generated/ingested audio?
3) Can I hide the visual controls in the timeline for transform, trim, distort andCompositing?
4) When I publish the parameters (addFloatSliderWithName), it will only show one dimensional keyframes. What do I have to specify to get a 2-D keyframe (value over time) like e.g. the opacity?
5) Can I display a pictogram in the thumbnails in the timeline? I want something like the "Placeholder" clip. Because our generator is not adding any images, I want to show the user a distinction to video clips (like displaying a note symbol or alike). Is that possible?
6) If I add a button using "addPushButtonWithName", it shows up in motion, but I cannot publish it. Is there a setting I didn't see, or is there a technical reason not to have a button in FCPX? I wanted it to trigger an offline render step.
Sorry for that long email, and thanks for all insights,
Daniel
--
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|