Skip to content

Setting can_load return value to false still load the plugin and show it up in host #91

@BeezBeez

Description

@BeezBeez

Hello. One of my video effects is set-up this way.

impl AdobePluginGlobal for Plugin {
	fn can_load(host_name: &str, _host_version: &str) -> bool {
		host_name.contains("Premiere") // Load on Premiere Pro only
	}
}

I can confirm when ran on AfterFX a breakpoint is hit here :

if !<$global_type>::can_load(in_host_name.to_str().unwrap(), in_host_version.to_str().unwrap()) {
                // Plugin said we don't want to load in this host, so exit here
                return $crate::sys::PF_Err_INVALID_CALLBACK as $crate::sys::PF_Err;
}

And the return instruction is triggered. But for some reasons I ignore I still can see it in the UI to drag it on layers.

I have tested to hide it on premiere but with the same unfortunate result.

What are your recommandations to load and show a plugin only on a specific host, is this a debug from Adobe's applications ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions