Yes, changing the topology of the composition from within the execute is not allowed. Could you load an image in the settings as a "prototype" image like the Composition Loader does for compositions? Why would you need to add ports dynamically like this?

Troy Koelling

On Feb 24, 2008, at 11:35 PM, Julien Rigal wrote:

Hello everyone,

I'm having trouble using the addInputPortWithType method inside the execute function of my QCPlugIn.

I'm making a plugin that needs to dynamically adapt the number of image and color input ports depending on the data it loads from a file. I've added a conditional loop to my plugin's execute function, but as soon a it's supposed to add a port, Quartz Composer throws an exception:

Error -[GLModelLoaderPlugIn addInputPortWithType:forKey:withAttributes:]: Inconsistent state.

I have the feeling I'm not supposed to be adding ports while rendering, but if that's so, how does one go about doing this sort of thing?

Regards,

Julien


_______________________________________________
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/tkoelling%40apple.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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