Skip to main content
Participating Frequently
April 16, 2009
Question

How to determine if filter was called from smart filters?

  • April 16, 2009
  • 1 reply
  • 1017 views

I am making a noise reduction plugin and want it to call my image profiling function when the image is loaded, except when it is loaded from a smart filter (because the image would have already been profiled).  Is it possible to figure out if the filter is being called from smart filters?

I tried writing a value that is different between the registry and scripting.  If the plugin is called from the filters menu, then scripting and the registry will return the same values.  They return different values if the filter is being applied to a virgin smart filter, or if (this is what I want to track) it is being called from an existing smart filter.

Is this possible?

I see that the other NR plugins aren't doing this so maybe it is not.

-Glenn Chan

http://www.colormancer.ca

This topic has been closed for replies.

1 reply

Chris Cox
Legend
April 17, 2009

You currently can't tell - being called from a smart filter is exactly the same as being called from an action or script.

You should be operating the same from all 3 calling paths.

Glenn_ChAuthor
Participating Frequently
April 17, 2009

Ack that's what I thought.  (Though I was wrong earlier about being able to tell something by writing different values into the registry and scripting- that doesn't do anything.)

Thanks.

Glenn_ChAuthor
Participating Frequently
April 26, 2009

Apparently Nik's products are able to determine smart filters or not... I am guessing they are using an automation plugin or something like that to do it???