Out of curiosity, is that from an input port from a plugin, or an input splitter ? I know from the API, you specify default keys for your plugin, but it would not surprise me if the input splitter did away with that data.. ? just a guess...

The example ones were, but I don't think their splitter-ness is the cause of this --

The top port is from a javascript patch that takes indexes for inputs -- the "default" is 42, curiously omitted from the list.

3/23/09 8:29:09 AM freqTest[35794] attr: {
    QCCompositionAttributeHasConsumersKey = 1;
    QCCompositionAttributeIsTimeDependentKey = 1;
    QCCompositionAttributeSourceKey = Data;
    "javascript_index_input" =     {
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "javascript index input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
    "labeled_input" =     {
        QCPortAttributeMaximumValueKey = 2;
        QCPortAttributeMenuItemsKey =         (
            alice,
            bob,
            charlie
        );
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "labeled input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
    "limited_Input" =     {
        QCPortAttributeMaximumValueKey = 64;
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "limited Input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
    "unlimited_Input" =     {
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "unlimited Input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
}

However, when opening the composition in anything with a patch parameter view, the state actually _is_ preserved:

<<inline: defaultPreservation.png>>




So the question remains: where are those defaults stored, and is there an approved way to access them?

(The problem I'm trying to solve is making a procedurally-generated UI for a composition, not unlike the QCCompositionParameterView, but with different layouts and different behaviour that makes QCCPV unsuitable)

--
[ christopher wright ]
[email protected]
http://kineme.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to