No, I'm almost sure that is my fault since it fails on other company apps that support ofx too.
I'll make a fast explanation about my purposes: - I have finally a pack of plugins :) if you have no license only one node will appear that has some info and an editable text box to introduce your serial number. it is defined as * OfxPropertySetHandle props; gParamHost->paramDefine(effectParams, kOfxParamTypeString, name, &props); gPropHost->propSetString(props, kOfxParamPropStringMode, 0, kOfxParamStringIsSingleLine ); gPropHost->propSetString(props, kOfxParamPropDefault, 0, fulltext.c_str());* where fulltext is the actual hardware id, this works fine already. in create instance I connect that value to a OfxParamHandle * gParamHost->paramGetHandle(paramSet, "lictextbox", &myData->codeParam, 0); * after checking the pressbutton action in instance changed I've test this two methods *gParamHost->paramGetValue(myData->codeParam, mchar); gParamHost->paramGetValueAtTime(myData->codeParam, 0, mchar);* and both gets the same result 4 ¿random? characters.* *Also I've tried this other way:* OfxParamSetHandle paramSetB; gEffectHost->getParamSet(effect, ¶mSet); OfxParamHandle param; OfxPropertySetHandle paramProps; gParamHost->paramGetHandle(paramSet, "lictextbox", ¶m, ¶mProps); gParamHost->paramGetValueAtTime(param, 0, mchar);* But it returns exactly the same 4 weird characters. Some other relevant info: - The characters doesn't change per session if I don't change the text in the box, with the same text the result is constant per session (but it changes between sessions). - Other info as: *gPropHost->propGetString(paramProps, kOfxPropLabel, 0, &mchar);* is retrieved fine. Thank you in advance, I'm excited about the possibility of release my first ofx plugin pack :) On Sat, Aug 11, 2012 at 6:43 AM, Bruno Nicoletti <[email protected]>wrote: > paramGetValue on the param suite should work. if it doesn't it is a bug in > Nuke. > > b > > On Fri, Aug 10, 2012 at 8:50 AM, Víctor M. Feliz (MOTIVA) > <[email protected]> wrote: > > I can't find the way to read a user edited text there. > > Ie. I manage to make this working > > > > OfxParamSetHandle paramSet; > > gEffectHost->getParamSet(effect, ¶mSet); > > > > OfxParamHandle param; > > OfxPropertySetHandle paramProps; > > gParamHost->paramGetHandle(paramSet, "lictextbox", ¶m, > ¶mProps); > > gPropHost->propGetString(paramProps, kOfxPropLabel, 0, &mchar); > > > > But obviously it reads the label of the editable text no the text itself. > > > > > > Also I've tried some solutions it doesn't work at all like: > > gParamHost->paramGetValue(myData->codeParam, mchar); > > being codeParam a OfxParamHandle or > > gParamHost->paramGetValue(param,"lictextbox", mchar); > > > > > > Thanks in advance for any help! > > > > _______________________________________________ > > Nuke-dev mailing list > > [email protected], http://forums.thefoundry.co.uk/ > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > > > > > > -- > Bruno Nicoletti, Founder and Head of Technology > The Foundry > Email: [email protected] > Skype: brunonicoletti > Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 > Web: www.thefoundry.co.uk > The Foundry Visionmongers Ltd. > Registered in England and Wales No: 4642027 >
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
