If one wants to change an option name, Nuke seems to be doing some string comparison of some sort when loading an old projects to best match It's slightly confusing to understand what it does. I have no problem with that other that it's not clear how to change.

Is it possible to have an official explanation of kOfxParamTypeChoice - kOfxParamPropChoiceOption which one sets via mHost->mPropHost->propSetString(props, kOfxParamPropChoiceOption, i, choice_name);
where i is an index till number of elements in popup menu ?

Right now Nuke saves something like for a popup choice menu called menuMode

    menuMode "Option Name"

Also been doing this request since v4.7 beta OFX support, Nuke is the only OFX host that does not support animated popups and booleans. Boolean there is no excuse but I have been trying to think how you would add this to menu given how you save parameter to file right now Yes we can create integer parameter for each popup but it makes UI real clumsy and hard to read and use and yes we can use the tidbit thing to list the integer values choice by name

Maybe a way would be for Nuke to add in file a second line in file for these when set to animatable, (took me a while to come up with this simple idea):

    menuMode "PutFirstChoiceNameIfThereIsKF"
anim.menuMode { {"string1","string2", "string3"} {x1 1 x2526 2} } //just saves all the menu option name for evolutionary purposes, and here the KF would be from frame 1 to 2525 = index 1, and from frame 2526 index 2

this way I think it would not break previous projects as Nuke would not recognize anim.menuMode so would skip it one could change name and order of string (if it was a bit more clear what Nuke does)
and new versions would inherit animation

Would be a line of code change + a switch in description based on Nuke version to implement on my side.
And would not break anything.

that was my big tiny change rerequest of today,


Pierre

_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to