-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't change parameter value from pluginInstanceAddedToDocument method #378
Comments
Great question! I'll try and reproduce and find the answer for you. In the meantime, have you tried wrapping in a
|
There are a few bugs like this in the APIs for FCP. I can confirm this bug in my own experience. I didn't know to report it here. Valid. |
Thanks for your reply, I tried using a custom parameter and
|
@belisoful did you find a workaround or a a method from which we can call the |
Someone on the Final Cut Pro team tells me they can't spot any obvious issues in the code, and it's not a known issue. Are you able to upload a very basic sample project with steps to reproduce? |
Sure, here is a simplified project that highlight the error: Simply run the xcode project, launch Motion and try to use the effect in In the project you can see that retrieving the parameter value works, while trying to set a new value doesn't as the |
No. I didn't. It's why I put that project on hold for FCP 10.7.1. |
@latenitefilms Any news on the error? |
I have not tested anything in FCP 10.8 yet. Been busy doing edits. :) ooooo. 10.8.1 is out with bug fixes.... I'll have to check this out..... |
I'll test in 10.8.1 and chase up with the Final Cut Pro team. |
The issue still occurs in Motion 5.8 using FxPlug SDK v4.3... |
Apple Feedback Assistant ID: MISSING
DESCRIBE THE BUG:
I can set the value of a int slider parameter like so:
However, calling this code in the
pluginInstanceAddedToDocument
method returns the following error:TO REPRODUCE:
Create a int slider like so:
Programmatically set its value in the
pluginInstanceAddedToDocument
method:EXPECTED BEHAVIOUR:
From Apple documentation: "The
pluginInstanceAddedToDocument
is called when a new plug-in instance is created or a document is loaded and an existing instance is deserialized. When the host calls this method, the plug-in is a part of the document and the various API objects work as expected."Retrieving the value of the parameter works as expected using the
FxParameterRetrievalAPI_v6
protocol, I'm wondering whyFxParameterSettingAPI_v5.setIntValue
doesn't.I'm quite new to FxPlugs and swift development, maybe I'm missing something.
SCREENSHOTS:
N/A
SPECS:
ADDITIONAL COMMENTS:
I tried to set the parameter value from a pushbutton event, it worked. The issue occurs when using the
pluginInstanceAddedToDocument
method.The text was updated successfully, but these errors were encountered: