-
1. Re: How can a plugin know the host version ?
ilvar Jan 18, 2010 11:54 AM (in response to G_Soucy)Use Getter plugin to get the code that retreives this (or any similar type of ) information.
Briefly:
PutProperty(classProperty,keyHostVersion)
PutEnumerated(classApplication,typeOrdinal,enumTarget);
PSActionControl->Get()
and then look for keyHostVersion and inside it for keyVersionMajor and keyVersionMinor
-
2. Re: How can a plugin know the host version ?
G_Soucy Jan 18, 2010 3:34 PM (in response to ilvar)Thank you for the pointer. I had some compilation problems trying to use the solution you propose with my format plugin but I got what I wanted with:
// Get the Property Suite from the parameter block
PropertyProcs *propSuite = formatParamBlock->propertyProcs;
if (propSuite){
int32 version=0;
propSuite->getPropertyProc(
'8BIM', propVersion, 0, (intptr_t *)&version, nil);
gPhotoshopVerMaj = version >> 16;
gPhotoshopVerMin = version && 0x0000ffff;
}
Gilbert
-
3. Re: How can a plugin know the host version ?
ilvar Jan 21, 2010 10:38 AM (in response to G_Soucy)Well, it was pseudo-code to being with

