Re: Compound Parameters
Re: Compound Parameters
- Subject: Re: Compound Parameters
- From: Peter Litwinowicz <email@hidden>
- Date: Fri, 25 Aug 2017 13:39:05 -0700
- Thread-topic: Compound Parameters
Easy enough to publish a group to FCP X.
Publish a param of the group (you can't publish the group with MOtion's GUI…
as Darrin correctly points out. Feature request!)
Let's say the group has ID of 9 and the param has ID of 25. (I'm taking
this from some actual code I have here, hence the specifics of the numbers)
Okay, so when you open in FCP, the template will only show the param with ID
25. Close FCP. Find the motion template (.moef file). Open with a text
editor.
You'll see text like this:
<publishSettings>
<version>2</version>
<target object="10013" channel="./9/25" name="Name of Param of Group"/>
<…. Other params and groups … >
</publishSettings>
Changes in bold to the first line:
<target object="10013" channel="./9" name="Name of Group"/>
So you what you are doing is basically publishing the group by taking off
the "/25" off "/9/25" (which says "param with id 25 is part of group with id
9), and then you have rename the thing being published to the group name you
desire.
As with other FCP groups, you'll need to go to the bar with the group name,
and go the right side to expose "Hide" or "Show" text that is normally not
displayed until the mouse hovers over that area.
Pete
From: Pro-apps-dev
<pro-apps-dev-bounces+pete=email@hidden> on behalf of
Lyndon Hill <email@hidden>
Date: Friday, August 25, 2017 at 12:48 PM
To: <email@hidden>
Subject: Compound Parameters
Hi Guys,
Two questions please:
1. How to publish compound parameters in Motion 5 (latest version) ?
I am following the instructions at
https://support.apple.com/kb/PH16056?locale=en_US
both the shortcut menu and "animation menu” have the publish option but it
is greyed out.
The long version of the above:
I did a [FxParameterCreationAPI startParameterSubGroup] in my FxFilter
addParameters method. There are some parameters inside the subgroup. This
allows the user to neatly collapse or open the group of parameters in the
inspector part of Motion and FCPX. If I try to publish the subgroup
parameter in Motion, I get the menu as shown in the first picture of the
support page above, but the publish option is disabled. I don’t want to
publish these parameters individually.
The Motion 5 user manual
https://help.apple.com/motion/mac/5.0/help/English/en/motion/usermanual/inde
x.html#chapter=19§ion=7&tasks=true
provides the same instructions as the other page.
2. How to expand a collapsed compound parameter group programatically ?
In my FxFilter parameterChanged method I can set the flag
kFxParameterFlag_COLLAPSED on a parameter subgroup to collapse it, but
setting the parameter flags to kFxParameterFlag_DEFAULT does not expand it
again. I’m pretty sure I tried all the other flags, but did not get any
success.
I am using FxPlug 3.
thanks in advance,
Lyndon Hill
_______________________________________________
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
_______________________________________________
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