Hi,
here is a followup to my last post:
I figured out what my problem was when I tried to read the keys from the file info.plist. So disregard my last message :-)
What I want to do is this: I wrote one (!) FxPlug plugin that should appear in the effects list of Motion and FCP as many plugins. For the user those many plugins will also do different things, so he thinks that there are really many different plugins. But actually all of those plugins are based on the same engine that is able to do many different things. I don't want to create a "Preset" popup menu for those different behaviors of the plugin, because the different setups also need different input parameters.
My current info.plist file looks like this:
<key>ProPlugPlugInGroupList</key> <array> <dict> <key>groupName</key> <string>CHV MultiPluginTest</string> <key>uuid</key> <string>50F264C5-1DBC-498C-BD60-90CCE28FFAB2</string> </dict> </array> <key>ProPlugPlugInList</key> <array> <dict> <key>className</key> <string>MultiPluginTest</string> <key>displayName</key> <string>Plugin Name 1</string> <key>group</key> <string>50F264C5-1DBC-498C-BD60-90CCE28FFAB2</string> <key>infoString</key> <string>Description1</string> <key>protocolNames</key> <array> <string>FxGenerator</string> </array> <key>uuid</key> <string>01F83FCE-54AC-4C39-B274-C4A390B8EE8A</string> </dict> <dict> <key>className</key> <string>MultiPluginTest</string> <key>displayName</key> <string>Plugin Name2</string> <key>group</key> <string>50F264C5-1DBC-498C-BD60-90CCE28FFAB2</string> <key>infoString</key> <string>Description2</string> <key>protocolNames</key> <array> <string>FxGenerator</string> </array> <key>uuid</key> <string>01F83FCE-54AC-4C39-B274-C4A390B8EE8B</string> </dict> <dict> <key>className</key> <string>MultiPluginTest</string> <key>displayName</key> <string>Plugin Name3</string> <key>group</key> <string>50F264C5-1DBC-498C-BD60-90CCE28FFAB2</string> <key>infoString</key> <string>Description3</string> <key>protocolNames</key> <array> <string>FxGenerator</string> </array> <key>uuid</key> <string>01F83FCE-54AC-4C39-B274-C4A390B8EE8C</string> </dict> </array>
The className is the same for all plugins. Only the displayName, the infoString and the uuid keys are different in each dictionary.
In the effects menu I can really see three plugins and I can use them all. But now I want to be able to determine which of those three plugin names the user dragged into the timeline. A simple number would already be completely sufficient. When I know that (for example) the second plugin was applied, I can easily read the keys from the dictionary of the second entry of the (ProPlugPlugInList) CFArray. How can I get that number ? Or does anybody have another good idea ?
cheers Christoph Vonrhein
|