Closed davidlatwe closed 4 years ago
I like it. Certainly cleaner
First two commits (7079c14, 9229fec) were the fixes to complete this PR. The rest were minor improvements.
It's good to be merged now, but I'll be out for travel starting tomorrow till next Thursday so if no other objections, merging this next weekend !
Sorry, just spotted that updating container will create duplicated knobs if existed, commit dc82024 fixed that. And one more change is if given an invalid container node, TypeError
will raised. (7715ebd)
That's it !!
@davidlatwe this PR is awesome! Thanks for help ;)
This PR is the first step of refactoring #438, for resolving
imprint
which functionality was a bit rigid.What's changed
lib.imprint
lib.imprint
:lib.set_avalon_knob_data
lib.add_publish_knob
pipeline.Creator
lib.get_avalon_knob_data
from #438About
lib.imprint
Nuke has three categories of knobs, data-stored knob, layout knob and complex data knob, but let's put complex data knob aside for now.
On data-stored knob,
imprint
will create knob which fits to regular data types, likebool
,int
,float
,str
,list
. Fordict
, it will become a group of knobs, or a group of tabs.For example:
Which you will get
And this:
Will looks like this
And if you wish to use other kind of knobs which is not mapped in
lib.create_knob
, you could uselib.Knobby
, for example:And you have a file path knob
Hope this PR make sense to you, please let me know what you think. :relaxed: