Created
January 24, 2022 06:41
-
-
Save MitchellKehn/f390a024b72f7a00553a4425dc9f1a8b to your computer and use it in GitHub Desktop.
[Nodal] it's Wordle for Nuke
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 11.3 v4 | |
push $cut_paste_input | |
NoOp { | |
name DeNodal1 | |
knobChanged "def main():\n import re\n node = nuke.thisNode()\n \n fixedLetters = node\[\"fixedLetters\"].getValue().strip().lower()\n floatingLetters = node\[\"floatingLetters\"].getValue().strip().lower()\n antiLetters = node\[\"antiLetters\"].getValue().strip().lower()\n wordList = node\[\"wordList\"].getValue().split(\",\")\n \n if not any((char.isalpha() for char in fixedLetters)) \\\n and not floatingLetters \\\n and not antiLetters:\n node\[\"solutions\"].setValue(\"no input\")\n return\n \n fixedPattern = fixedLetters.replace(\"_\", r\"\\w\")\n candidateWords = \[]\n for word in wordList:\n if re.match(fixedPattern, word) \\\n and all((char in word for char in floatingLetters)) \\\n and not any((char in word for char in antiLetters)):\n candidateWords.append(word)\n \n if candidateWords:\n solutionText = \"\\n\".join(candidateWords)\n else:\n solutionText = \"no solutions\"\n node\[\"solutions\"].setValue(solutionText)\n \nmain()" | |
selected true | |
xpos -486 | |
ypos 33 | |
addUserKnob {20 DeNodal} | |
addUserKnob {1 fixedLetters l "fixed letters" t "the letters where you know what position they go in.\n\nuse underscores to mark unknown letter places"} | |
fixedLetters _____ | |
addUserKnob {1 floatingLetters l "floating letters" t "letters that are in the word, but you don't know where"} | |
addUserKnob {1 antiLetters l "anti letters" t "letters that definitely aren't in the word"} | |
addUserKnob {1 wordList +INVISIBLE} | |
wordList about,other,which,their,there,first,would,these,click,price,state,email,world,music,after,video,where,books,links,years,order,items,group,under,games,could,great,hotel,store,terms,right,local,those,using,phone,forum,based,black,check,index,being,women,today,south,pages,found,house,photo,power,while,three,total,place,think,north,posts,media,water,since,guide,board,white,small,times,sites,level,hours,image,title,shall,class,still,money,every,visit,tools,reply,value,press,learn,print,stock,point,sales,large,table,start,model,human,movie,march,yahoo,going,study,staff,again,april,never,users,topic,below,party,login,legal,above,quote,story,rates,young,field,paper,girls,night,texas,poker,issue,range,court,audio,light,write,offer,given,files,event,china,needs,might,month,major,areas,space,cards,child,enter,share,added,radio,until,color,track,least,trade,david,green,close,drive,short,means,daily,beach,costs,style,front,parts,early,miles,sound,works,rules,final,adult,thing,cheap,third,gifts,cover,often,watch,deals,words,linux,james,heart,error,clear,makes,india,taken,known,cases,quick,whole,later,basic,shows,along,among,death,speed,brand,stuff,japan,doing,loans,shoes,entry,notes,force,river,album,views,plans,build,types,lines,apply,asked,cross,weeks,lower,union,names,leave,teens,woman,cable,score,shown,flash,ideas,allow,homes,super,asian,cause,focus,rooms,voice,comes,brown,forms,glass,happy,smith,thank,prior,sport,ready,round,built,blood,earth,nokia,italy,basis,award,peter,extra,pussy,rated,quite,horse,stars,lists,owner,takes,bring,input,agent,valid,grand,trial,units,wrote,ships,metal,funds,guest,seems,trust,multi,grade,panel,floor,match,plant,sense,stage,goods,maybe,spain,youth,break,dance,apple,enjoy,block,civil,steel,songs,fixed,wrong,hands,paris,fully,worth,peace,coast,grant,agree,blogs,scale,stand,frame,chief,gives,heard,begin,royal,clean,bible,suite,vegas,chris,piece,sheet,seven,older,cells,looks,calls,whose,naked,lives,stone,tests,buyer,steve,label,scott,canon,waste,chair,phase,motor,shirt,crime,count,claim,patch,santa,alone,jones,saint,drugs,joint,fresh,dates,upper,prime,limit,began,louis,steps,shops,creek,urban,tours,labor,admin,heavy,solid,theme,porno,touch,goals,serve,magic,mount,smart,latin,avoid,birth,virus,abuse,facts,faith,chain,moved,reach,sorry,gamma,truth,films,owned,draft,chart,jesus,clubs,equal,codes,kinds,teams,funny,tried,named,laser,harry,taxes,mouse,brain,dream,false,falls,stats,carry,hello,clips,brief,ended,eight,wants,alert,queen,sweet,diego,truck,votes,ocean,signs,depth,train,feeds,route,frank,anime,speak,query,rural,judge,bytes,fight,filed,korea,banks,kelly,leads,brian,miami,wales,minor,noted,spent,davis,helps,cycle,sleep,scene,drink,intel,rings,henry,guess,ahead,devel,delta,cisco,alpha,bonus,adobe,trees,dress,refer,babes,layer,spend,clock,ratio,proof,empty,maine,ideal,specs,parks,cream,boxes,hills,aware,shape,irish,firms,usage,mixed,exist,wheel,angel,width,noise,array,greek,sharp,occur,knows,coach,kevin,plate,logic,sizes,plain,costa,trail,buddy,setup,blues,scope,crazy,bears,mouth,meter,fruit,mysql,lewis,sugar,stick,allen,genre,slide,exact,bound,storm,micro,dolls,paint,delay,pilot,czech,novel,ultra,idaho,plays,truly,lodge,boobs,broad,swiss,sarah,clark,foods,guard,newly,raise,drama,bands,lunch,dildo,audit,polls,tower,yours,jason,shell,solar,catch,doubt,tasks,const,doors,forth,bruce,split,twice,egypt,shift,simon,marks,loved,birds,saved,shots,moore,treat,piano,risks,ports,teach,rapid,hairy,dutch,boots,holds,pulse,metro,strip,pearl,penis,heads,logos,milfs,honda,bills,opera,asset,blank,humor,lived,tight,meant,plane,meets,tampa,grace,susan,adams,villa,inner,roman,taste,trips,sides,turns,cache,lease,proud,giant,seats,alarm,usual,angle,vinyl,worst,honor,eagle,pants,nurse,quiet,comic,crown,maker,crack,picks,smoke,craft,apart,blind,coins,gross,epson,actor,finds,fifth,prize,dirty,wayne,alive,prove,wings,ridge,modem,larry,skill,moves,throw,trend,rhode,busty,worse,boats,tells,fiber,graph,talks,bonds,fraud,roger,crash,inter,grove,spray,roads,faces,cocks,mayor,yield,hence,radar,lakes,diary,kings,flags,baker,shock,walls,ebony,drawn,beast,dodge,pizza,yards,woods,jokes,twiki,globe,dicke,kerry,ghost,pride,keith,linda,chile,maria,brass,plaza,quest,trans,booty,acres,venue,vital,excel,modes,enemy,wells,opens,lucky,thick,iraqi,vista,chips,terry,flood,arena,grown,jerry,smile,lands,armed,laura,tokyo,nikon,candy,pills,tiger,folks,balls,boost,icons,moral,keeps,pound,roses,bread,tough,gonna,chest,billy,craig,solve,nancy,tones,sight,towns,worry,reads,roles,glory,saudi,fault,karen,jimmy,rugby,fluid,barry,devil,grass,marie,kenya,sized,manga,theft,swing,dated,shoot,elite,poems,robot,winds,gnome,roots,noble,shore,loves,loose,slots,rocks,genes,horny,hosts,atlas,feels,ralph,corps,liver,decor,texts,evans,fails,aging,alice,intro,clerk,mills,jeans,fonts,favor,sigma,xhtml,aside,essay,camps,aaron,trace,packs,spoke,arrow,rough,weird,holes,blade,meals,robin,strap,crowd,cloud,valve,knife,shelf,liked,adopt,fotos,outer,tales,islam,nodes,seeds,cited,skype,tired,steam,acute,stood,carol,stack,curve,amber,trunk,waves,camel,lamps,juice,chase,sauce,beads,flows,fewer,proxy,lanka,voted,bikes,gates,slave,lycos,zdnet,combo,haven,charm,basin,ranch,drunk,toner,latex,delhi,alien,broke,nepal,nylon,discs,rocky,fleet,bunch,cents,omega,civic,saver,grill,grain,wanna,seeks,gains,spots,salon,turbo,thats,aimed,reset,brush,spare,kodak,skirt,honey,gauge,faced,sixth,farms,cheat,sandy,macro,laugh,pitch,autos,perry,dozen,teeth,cloth,stamp,lotus,cargo,salem,likes,tapes,zones,races,maple,depot,blend,julie,janet,phpbb,probe,helen,lopez,debug,chuck,ebook,bingo,minds,xanax,sunny,leeds,cedar,blair,hopes,mason,burns,pumps,mario,utils,pairs,chose,blast,tommy,brake,congo,olive,cyber,clone,dicks,relay,tears,oasis,angry,lover,rolls,malta,daddy,ferry,omaha,loads,motel,rally,dying,stuck,stops,vocal,organ,lemon,toxic,bench,rider,butts,bobby,sheep,wines,salad,paste,katie,relax,sword,sells,coral,pixel,float,colin,paths,acids,dairy,admit,fancy,samoa,squad,wages,males,chaos,wheat,bases,unity,bride,begun,socks,essex,fever,drums,rover,flame,tanks,spell,emily,annex,sudan,sluts,hints,wired,elvis,argue,arise,jamie,bitch,chess,oscar,menus,canal,amino,herbs,lying,drill,bryan,hobby,tries,trick,myers,drops,wider,screw,blame,fifty,uncle,jacob,randy,brick,naval,donna,cabin,eddie,fired,perth,syria,klein,tires,retro,anger,suits,glenn,handy,crops,guild,tribe,batch,alter,ghana,edges,twins,amend,chick,thong,medal,walks,sucks,booth,indie,bones,breed,polar,msgid,carey,danny,patio,lloyd,beans,ellis,snake,julia,berry,ought,fixes,sends,mazda,timer,tyler,verse,highs,ellen,racks,nasty,tumor,watts,forty,tubes,floyd,queue,skins,exams,welsh,belly,haiti,elder,sonic,thumb,twist,ranks,debut,volvo,penny,ivory,remix,alias,newer,spice,ascii,donor,trash,manor,diane,disco,endif,minus,milan,shade,digit,lions,pools,lyric,grave,howto,devon,saves,lobby,punch,gotta,karma,betty,lucas,mardi,shake,holly,silly,mercy,fence,diana,shame,fatal,flesh,jesse,qatar,sheer,witch,cohen,puppy,kathy,smell,satin,promo,tunes,lucia,nerve,renew,locks,euros,rebel,hired,hindu,kills,slope,nails,whats,rides,rehab,merit,disks,condo,fairy,shaft,casio,kitty,drain,monte,fires,panic,leone,onion,beats,merry,scuba,verde,dried,derby,annie,derek,steal,fears,tuner,alike,sagem,scout,dealt,bucks,badge,wrist,heath,lexus,realm,jenny,yemen,buses,rouge,yeast,kenny,yukon,singh,brook,wives,xerox,sorts,vsnet,papua,armor,viral,pipes,laden,aruba,merge,edgar,dubai,allan,sperm,filme,craps,frost,sally,yacht,tracy,whale,shark,grows,cliff,tract,shine,wendy,diffs,ozone,pasta,serum,swift,inbox,focal,samba,wound,belle,cindy,lined,boxed,cubic,spies,elect,bunny,chevy,tions,flyer,baths,emacs,climb,sparc,dover,token,kinda,dylan,belts,burke,clara,flush,hayes,moses,johns,jewel,teddy,dryer,ruled,funky,joins,scary,mpegs,cakes,mixer,sbjct,tooth,stays,drove,upset,mines,logan,lance,colon,lanes,purse,align,bless,crest,alloy,plots,tulsa,casey,draws,bloom,loops,surge,tahoe,souls,spank,vault,wires,mails,blake,orbit,niger,bacon,paxil,spine,trout,apnic,fatty,joyce,marco,isaac,oxide,badly,scoop,sanyo,blink,carlo,tiles,tamil,fuzzy,grams,forge,dense,brave,awful,meyer,whore,wagon,knock,peers,quilt,notre,mambo,flour,choir,blond,burst,wiley,fibre,daisy,crude,bored,allah,fares,hoped,safer,marsh,ricky,theta,stake,arbor,rifle,bulbs,waist,sewer,bosch,vitro,hyatt,romeo,turks,demos,sided,cuban,resin,linen,seals,decay,usher,skate,lynch,franc,timor,flats,heels,voter,urine,capri,towel,sears,flies,crane,popup,habit,coupe,benin,lords,tends,sixty,spark,spike,tonga,backs,soils,hunks,libya,sedan,cares,flora,kazaa,hardy,bells,denim,andre,buick,doses,baked,glove,alito,plush,weber,nelly,urged,brent,kyoto,adapt,fuels,brett,paula,stern,shawn,tutor,idiot,debit,edits,raven,slice,aspen,lemma,venus,dolby,nikki,halls,pause,demon,gabon,atari,asses,couch,downs,rogue,sdram,optic,chili,grief,sweat,masks,celeb,assoc,quake,alley,twain,boise,nevis,buffy,loyal,renal,spite,imply,chill,liner,lifts,vivid,acted,byron,skull,riley,ninja,sands,steak,cobra,gucci,threw,https,walsh,ninth,marry,wills,atoms,drake,della,rails,pgsql,fried,cairo,malls,woody,cried,plugs,coded,supra,molly,franz,palau,rival,beige,rolex,homer,gases,genus,dixon,debts,icann,avril,myths,knees,poets,woven,pedro,trent,rigid,salsa,blown,baton,abbey,bruno,evite,diets,sauna,bauer,bowls,qaeda,kitts,macau,cruel,eager,chang,pupil,feast,acura,fedex,ankle,decks,blunt,hamas,react,rises,shane,coats,aston,fairs,flute,hindi,harsh,whois,burma,cease,poles,sioux,jenna,fargo,equip,reged,hedge,curry,worms,dewey,pouch,hooks,peaks,didnt,spoon,bombs,niche,cigar,curse,forex,titan,anita,shout,nudes,straw,fgets,reuse,loses,suede,peach,uncut,stove,nixon,brady,zhang,freak,bluff,sadly,avail,hatch,stein,spill,drift,winxp,crisp,scans,onset,assay,leigh,tents,snack,pulls,squid,maxim,slate,pagan,widow,skies,kicks,canoe,juicy,moody,pedal,tuned,mayer,geoff,scrap,bella,terra,vapor,aloud,goose,winnt,hydro,playa,noisy,abide,socio,bliss,parse,jelly,mania,edwin,clare,bolts,typed,satan,megan,cheer,marty,xlibs,clamp,grape,deeds,traps,racer,guilt,sweep,doyle,ducks,vince,param,lunar,posed,forks,boxer,weigh,rodeo,moose,crush,cathy,paulo,lever,tasty,rants,tarot,carts,cocoa,mixes,panty,aires,bulls,orion,hurry,clash,biker,nauru,stain,reign,baron,bates,stiff,rabbi,sushi,puffy,elbow,stark,circa,quinn,razor,cough,tibet,isles,ovens,inlet,bronx,gloss,panda,porch,isuzu,eaten,sinks,steep,dinar,creed,carat,nobel,faxes,plump,midst,borne,tesco,tempo,getty,payne,torch,lohan,hacks,attic,piper,stems,avery,toons,tenth,desks,aided,cutie,notch,seoul,lacks,bowie,poses,scent,akron,fines,grasp,ounce,buena,toast,kumar,kinky,owens,quota,versa,starr,jumbo,maths,flint,dummy,awake,burnt,studs,roast,petty,felix,shiny,smash,braun,ample,royce,scarf,hated,spicy,fools,beard,wedge,peggy,ruins,denis,hyper,gmail,cites,ezine,gamer,alexa,savvy,terri,norms,silva,prima,zelda,fetal,palms,chord,kudoz,hawks,irons,comet,lotto,syrup,erase,bites,prose,swear,intra,clown,taboo,olson,dwarf,ifdef,pines,fucks,urges,enron,codec,pablo,beams,props,dough,stool,welch,boone,horde,mommy,nanny,roach,angus,ashes,natal,locus,msnbc,elton,prone,clues,crews,timed,scare,thief,motif,hurts,sofia,spear,nigel,jolie,blanc,birch,slash,mikes,seiko,arial,stacy,helix,dixie,shook,matte,heidi,zebra,fetch,faroe,logon,trong,unite,shear,ponds,trump,mates,avian,visas,webmd,champ,recap,astro,crawl,flaws,olsen,hazel,messy,rupee,ments,irene,lungs,vinci,jacks,stole,kirby,quasi,exile,anglo,knots,anton,gerry,kappa,jumps,snoop,vague,wraps,rusty,warns,sting,bravo,secsg,liter,nicht,basil,paced,renee,weiss,giles,shack,sleek,ariel,monty,cafes,hitch,nexus,tango,ernst,sings,carte,queer,pains,vioxx,ahmed,sobre,kuala,comma,geeks,avant,repec,perez,cimel,leica,torah,busch,tiava,freed,cheek,gavin,lasts,httpd,bowel,chats,mafia,lilly,shire,lyons,scams,lipid,clyde,irwin,mains,misty,prism,rests,vegan,corel,groom,osama,weeds,oprah,beers,clive,darby,fills,grips,kayak,altar,gears,risen,rhino,eaton,ruler,henri,swept,troop,arose,becky,lesbo,klaus,hogan,debra,cdrom,corey,slips,trays,flock,chung,boris,shave,swamp,faint,gland,blows,stoke,kauai,ipsec,undef,nasal,nitro,marin,loser,claus,hipaa,porto,jolly,femme,siege,wolfe,tyres,butte,hicks,pratt,chalk,negro,wrath,grind,clint,blitz,osaka,jorge,cooks,rainy,diggs,pluto,mitch,viola,rumor,volts,diver,blaze,wreck,sammy,arabs,brock,hoops,macon,lynne,chloe,prada,plone,horns,kylie,naomi,risky,clair,crete,tulip,ciara,damon,owing,benny,ipods,annum,roche,ropes,morse,cords,warez,ditch,slick,chunk,reels,slept,gregg,huang,ibook,waits,tenor,scrub,cello,caves,cocos,metre,thurs,topaz,soaps,ricoh,gibbs,dusty,patty,crate,kanye,cared,sworn,twink,bowen,beech,frogs,expat,agnes,glibc,maori,tense,basel,oxley,foley,moran,decal,temps,fiona,fritz,mover,erica,macos,betsy,shaun,fauna,detox,spurs,ortho,gould,eliza,usaid,darts,tails,hangs,quark,zyban,dolce,veins,folds,angie,sneak,octet,mccoy,mateo,fread,willy,edith,magna,polly,tidal,jules,ernie,poole,crust,dolly,lenox,miner,cecil,cajun,diner,regis,mound,ethan,ibiza,reese,chefs,pixar,scion,dhtml,winme,mandy,hoods,proto,jared,wears,regal,alvin,raton,curly,hound,wharf,flick,datum,maize,banff,psalm,gowns,luton,leaks,swell,ville,chico,irony,lasik,levin,amiga,viper,gypsy,litre,binds,titus,flare,wight,crank,goats,rains,brace,abdul,ryder,garth,nolan,paolo,argus,mango,thigh,carla,meats,windy,alamo,steer,vogue,aired,vodka,zaire,sakai,knobs,inlog,salts,soups,moist,trina,pests,entre,plano,doris,petit,fries,saxon,stall,deere,serif,monks,aloha,utter,rents,cater,colts,putin,dunes,pinch,flynn,troll,filth,kraft,algae,arden,byrne,shady,erect,vests,lydia,valet,cheng,eliot,jihad,elgin,jonah,raped,denon,sloan,plato,palma,taxis,hates,hague,tammy,ogden,madam,posix,libby,seite,tease,aroma,rowan,dwell,stair,sonny,rotor,quart,bison,fungi,greed,elena,bleed,serie,incur,tempe,cores,nifty,yates,leroy,infos,thanx,ecard,dukes,fudge,homme,rossi,weave,vicki,exits,siena,reiki,dante,lange,rosen,cured,buggy,recon,slack,vines,gorge,liens,musik,boyle,lamar,jonas,locke,cages,pager,jolla,banjo,stout,duane,hanna,pepsi,adler,stare,missy,meade,flair,cette,aisle,dunno,limbs,paved,scots,tyson,econo,seize,spawn,epoxy,stony,punta,crypt,bogus,jboss,faded,mobil,tying,diode,johan,motto,alton,janis,rubin,alain,deter,furry,cubes,linus,rinse,tides,venom,voyer,mummy,cries,ether,sheds,sofas,croix,boing,rosie,terre,techs,elisa,haute,wacky,reits,muddy,nuevo,asean,suche,shalt,visor,mundo,naive,hires,merck,tanya,folio,barre,fiery,fakes,fomit,ahmad,cooke,emule,acorn,bayer,basal,topps,wilde,smoky,flirt,slang,finch,largo,tally,creep,agile,sacks,kiosk,ionic,stray,poppy,suppl,turin,forte,sesso,hanoi,waive,vance,greet,lymph,sonia,bryce,latch,verbs,drank,santo,torso,ramon,dansk,hobbs,mayen,grabs,geile,wards,hinge,patti,faire,emory,stunt,maven,vitae,witty,hertz,flown,silky,micah,repay,await,fetus,cider,gangs,lenny,arxiv,percy,conan,lilac,sinus,denny,hears,lexar,pivot,huron,glide,todos,creme,waltz,paige,blush,monde,malay,modal,cadet,loren,carbs,vdata,opted,tweak,trait,shrek,eater,cymru,cyrus,hides,synth,layup,nazis,piles,bezel,havoc,sling,xoops,rican,gupta,tummy,axial,julio,epoch,plaid,fable,scars,susie,reyes,pesos,spans,obese,sober,tread,avaya,wigan,paddy,norma,astra,mondo,wyatt,otter,earns,sassy,demux,vases,garde,prweb,aries,ramps,dread,qwest,dyson,josef,casts,heinz,argos,needy,reich,weary,tweed,snowy,genie,bling,chars,mcgee,delle,fined,georg,apron,aides,forma,sendo,gomez,corba,yummy,momma,trish,sexes,husky,bland,darth,ching | |
addUserKnob {26 solutions T "no input"} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 11.3 v4 | |
push $cut_paste_input | |
NoOp { | |
name Nodal1 | |
selected true | |
xpos -297 | |
ypos 41 | |
addUserKnob {20 Nodal} | |
addUserKnob {26 text l "Wordle for" T Nuke} | |
addUserKnob {1 guess} | |
addUserKnob {22 guessButton l guess! -STARTLINE T "PARTIAL = 4076816383\nMATCH = 754921471\n\ndef main():\n node = nuke.thisNode()\n guess = node\[\"guess\"].getValue().strip().lower()\n currentRound = int(node\[\"currentRound\"].getValue())\n \n if len(guess) != 5:\n node\[\"feedback\"].setValue(\"word must be exactly 5 letters\")\n return\n \n wordList = node\[\"wordList\"].getValue().split(\",\")\n if guess not in wordList:\n node\[\"feedback\"].setValue(\"word must be a real word\")\n return\n \n node\[\"guess\"].setValue(\"\")\n \n childNodeNames = \[i for i in node\[\"childNodes\"].getValue().split(\",\") if i]\n deletedChildrenNames = \[]\n newYpos = 0\n newXpos = 0\n for childNodeName in childNodeNames:\n if not childNodeName: continue\n childNode = nuke.toNode(childNodeName)\n if not childNode: \n deletedChildrenNames.append(childNodeName)\n continue\n newXpos = min(childNode.xpos(), newXpos)\n newYpos = max(newYpos, childNode.ypos() + childNode.screenHeight())\n \n for delName in deletedChildrenNames:\n childNodeNames.remove(delName)\n \n targetWord = node\[\"currentWord\"].getValue().decode(\"hex\")\n for i, char in enumerate(guess):\n guessNode = nuke.nodes.NoOp()\n guessNode\[\"note_font\"].setValue(\"Verdana Bold\")\n guessNode\[\"note_font_size\"].setValue(60)\n guessNode\[\"hide_input\"].setValue(True)\n guessNode.setXYpos(newXpos, newYpos)\n newXpos += 80 # guessNode.screenWidth()\n \n guessNode\[\"autolabel\"].setValue('\"\{\}\"'.format(char.upper()))\n \n color = 0\n if char in targetWord:\n color = PARTIAL\n if char == targetWord\[i]:\n color = MATCH\n guessNode\[\"tile_color\"].setValue(color)\n \n childNodeNames.append(guessNode.name())\n \n node\[\"childNodes\"].setValue(\",\".join(childNodeNames))\n node\[\"currentRound\"].setValue(currentRound + 1)\n if node\[\"currentRound\"].getValue() >= node\[\"maxRounds\"].getValue():\n node\[\"feedback\"].setValue(\"Game over! word was '\{\}'\".format(targetWord))\n node\[\"guessButton\"].setEnabled(False)\n else:\n node\[\"feedback\"].setValue(\"Make another guess\")\n \n if targetWord == guess:\n node\[\"feedback\"].setValue(\"You win!\")\n node\[\"guessButton\"].setEnabled(False)\n \n \nmain() \n "} | |
addUserKnob {26 feedback l " " T "Make a guess"} | |
addUserKnob {22 newGame l reset T "def main():\n node = nuke.thisNode()\n \n node\[\"guessButton\"].setEnabled(True)\n node\[\"feedback\"].setValue(\"Make a guess\")\n wordList = node\[\"wordList\"].getValue().split(\",\")\n \n import random\n node\[\"currentWord\"].setValue(random.choice(wordList).encode(\"hex\"))\n \n childNodeNames = \[i for i in node\[\"childNodes\"].getValue().split(\",\") if i]\n for childNodeName in childNodeNames:\n if not childNodeName: continue\n childNode = nuke.toNode(childNodeName)\n if not childNode: continue\n nuke.delete(childNode)\n node\[\"childNodes\"].setValue(\"\")\n \n node\[\"currentRound\"].setValue(0)\n \nmain()" +STARTLINE} | |
addUserKnob {1 childNodes t "names of all nodes created as part of the current game" +INVISIBLE} | |
addUserKnob {3 currentRound +INVISIBLE} | |
addUserKnob {3 maxRounds +INVISIBLE} | |
maxRounds 5 | |
addUserKnob {1 wordList t "comma separated list of all words possible in the game" +INVISIBLE} | |
wordList about,other,which,their,there,first,would,these,click,price,state,email,world,music,after,video,where,books,links,years,order,items,group,under,games,could,great,hotel,store,terms,right,local,those,using,phone,forum,based,black,check,index,being,women,today,south,pages,found,house,photo,power,while,three,total,place,think,north,posts,media,water,since,guide,board,white,small,times,sites,level,hours,image,title,shall,class,still,money,every,visit,tools,reply,value,press,learn,print,stock,point,sales,large,table,start,model,human,movie,march,yahoo,going,study,staff,again,april,never,users,topic,below,party,login,legal,above,quote,story,rates,young,field,paper,girls,night,texas,poker,issue,range,court,audio,light,write,offer,given,files,event,china,needs,might,month,major,areas,space,cards,child,enter,share,added,radio,until,color,track,least,trade,david,green,close,drive,short,means,daily,beach,costs,style,front,parts,early,miles,sound,works,rules,final,adult,thing,cheap,third,gifts,cover,often,watch,deals,words,linux,james,heart,error,clear,makes,india,taken,known,cases,quick,whole,later,basic,shows,along,among,death,speed,brand,stuff,japan,doing,loans,shoes,entry,notes,force,river,album,views,plans,build,types,lines,apply,asked,cross,weeks,lower,union,names,leave,teens,woman,cable,score,shown,flash,ideas,allow,homes,super,asian,cause,focus,rooms,voice,comes,brown,forms,glass,happy,smith,thank,prior,sport,ready,round,built,blood,earth,nokia,italy,basis,award,peter,extra,pussy,rated,quite,horse,stars,lists,owner,takes,bring,input,agent,valid,grand,trial,units,wrote,ships,metal,funds,guest,seems,trust,multi,grade,panel,floor,match,plant,sense,stage,goods,maybe,spain,youth,break,dance,apple,enjoy,block,civil,steel,songs,fixed,wrong,hands,paris,fully,worth,peace,coast,grant,agree,blogs,scale,stand,frame,chief,gives,heard,begin,royal,clean,bible,suite,vegas,chris,piece,sheet,seven,older,cells,looks,calls,whose,naked,lives,stone,tests,buyer,steve,label,scott,canon,waste,chair,phase,motor,shirt,crime,count,claim,patch,santa,alone,jones,saint,drugs,joint,fresh,dates,upper,prime,limit,began,louis,steps,shops,creek,urban,tours,labor,admin,heavy,solid,theme,porno,touch,goals,serve,magic,mount,smart,latin,avoid,birth,virus,abuse,facts,faith,chain,moved,reach,sorry,gamma,truth,films,owned,draft,chart,jesus,clubs,equal,codes,kinds,teams,funny,tried,named,laser,harry,taxes,mouse,brain,dream,false,falls,stats,carry,hello,clips,brief,ended,eight,wants,alert,queen,sweet,diego,truck,votes,ocean,signs,depth,train,feeds,route,frank,anime,speak,query,rural,judge,bytes,fight,filed,korea,banks,kelly,leads,brian,miami,wales,minor,noted,spent,davis,helps,cycle,sleep,scene,drink,intel,rings,henry,guess,ahead,devel,delta,cisco,alpha,bonus,adobe,trees,dress,refer,babes,layer,spend,clock,ratio,proof,empty,maine,ideal,specs,parks,cream,boxes,hills,aware,shape,irish,firms,usage,mixed,exist,wheel,angel,width,noise,array,greek,sharp,occur,knows,coach,kevin,plate,logic,sizes,plain,costa,trail,buddy,setup,blues,scope,crazy,bears,mouth,meter,fruit,mysql,lewis,sugar,stick,allen,genre,slide,exact,bound,storm,micro,dolls,paint,delay,pilot,czech,novel,ultra,idaho,plays,truly,lodge,boobs,broad,swiss,sarah,clark,foods,guard,newly,raise,drama,bands,lunch,dildo,audit,polls,tower,yours,jason,shell,solar,catch,doubt,tasks,const,doors,forth,bruce,split,twice,egypt,shift,simon,marks,loved,birds,saved,shots,moore,treat,piano,risks,ports,teach,rapid,hairy,dutch,boots,holds,pulse,metro,strip,pearl,penis,heads,logos,milfs,honda,bills,opera,asset,blank,humor,lived,tight,meant,plane,meets,tampa,grace,susan,adams,villa,inner,roman,taste,trips,sides,turns,cache,lease,proud,giant,seats,alarm,usual,angle,vinyl,worst,honor,eagle,pants,nurse,quiet,comic,crown,maker,crack,picks,smoke,craft,apart,blind,coins,gross,epson,actor,finds,fifth,prize,dirty,wayne,alive,prove,wings,ridge,modem,larry,skill,moves,throw,trend,rhode,busty,worse,boats,tells,fiber,graph,talks,bonds,fraud,roger,crash,inter,grove,spray,roads,faces,cocks,mayor,yield,hence,radar,lakes,diary,kings,flags,baker,shock,walls,ebony,drawn,beast,dodge,pizza,yards,woods,jokes,twiki,globe,dicke,kerry,ghost,pride,keith,linda,chile,maria,brass,plaza,quest,trans,booty,acres,venue,vital,excel,modes,enemy,wells,opens,lucky,thick,iraqi,vista,chips,terry,flood,arena,grown,jerry,smile,lands,armed,laura,tokyo,nikon,candy,pills,tiger,folks,balls,boost,icons,moral,keeps,pound,roses,bread,tough,gonna,chest,billy,craig,solve,nancy,tones,sight,towns,worry,reads,roles,glory,saudi,fault,karen,jimmy,rugby,fluid,barry,devil,grass,marie,kenya,sized,manga,theft,swing,dated,shoot,elite,poems,robot,winds,gnome,roots,noble,shore,loves,loose,slots,rocks,genes,horny,hosts,atlas,feels,ralph,corps,liver,decor,texts,evans,fails,aging,alice,intro,clerk,mills,jeans,fonts,favor,sigma,xhtml,aside,essay,camps,aaron,trace,packs,spoke,arrow,rough,weird,holes,blade,meals,robin,strap,crowd,cloud,valve,knife,shelf,liked,adopt,fotos,outer,tales,islam,nodes,seeds,cited,skype,tired,steam,acute,stood,carol,stack,curve,amber,trunk,waves,camel,lamps,juice,chase,sauce,beads,flows,fewer,proxy,lanka,voted,bikes,gates,slave,lycos,zdnet,combo,haven,charm,basin,ranch,drunk,toner,latex,delhi,alien,broke,nepal,nylon,discs,rocky,fleet,bunch,cents,omega,civic,saver,grill,grain,wanna,seeks,gains,spots,salon,turbo,thats,aimed,reset,brush,spare,kodak,skirt,honey,gauge,faced,sixth,farms,cheat,sandy,macro,laugh,pitch,autos,perry,dozen,teeth,cloth,stamp,lotus,cargo,salem,likes,tapes,zones,races,maple,depot,blend,julie,janet,phpbb,probe,helen,lopez,debug,chuck,ebook,bingo,minds,xanax,sunny,leeds,cedar,blair,hopes,mason,burns,pumps,mario,utils,pairs,chose,blast,tommy,brake,congo,olive,cyber,clone,dicks,relay,tears,oasis,angry,lover,rolls,malta,daddy,ferry,omaha,loads,motel,rally,dying,stuck,stops,vocal,organ,lemon,toxic,bench,rider,butts,bobby,sheep,wines,salad,paste,katie,relax,sword,sells,coral,pixel,float,colin,paths,acids,dairy,admit,fancy,samoa,squad,wages,males,chaos,wheat,bases,unity,bride,begun,socks,essex,fever,drums,rover,flame,tanks,spell,emily,annex,sudan,sluts,hints,wired,elvis,argue,arise,jamie,bitch,chess,oscar,menus,canal,amino,herbs,lying,drill,bryan,hobby,tries,trick,myers,drops,wider,screw,blame,fifty,uncle,jacob,randy,brick,naval,donna,cabin,eddie,fired,perth,syria,klein,tires,retro,anger,suits,glenn,handy,crops,guild,tribe,batch,alter,ghana,edges,twins,amend,chick,thong,medal,walks,sucks,booth,indie,bones,breed,polar,msgid,carey,danny,patio,lloyd,beans,ellis,snake,julia,berry,ought,fixes,sends,mazda,timer,tyler,verse,highs,ellen,racks,nasty,tumor,watts,forty,tubes,floyd,queue,skins,exams,welsh,belly,haiti,elder,sonic,thumb,twist,ranks,debut,volvo,penny,ivory,remix,alias,newer,spice,ascii,donor,trash,manor,diane,disco,endif,minus,milan,shade,digit,lions,pools,lyric,grave,howto,devon,saves,lobby,punch,gotta,karma,betty,lucas,mardi,shake,holly,silly,mercy,fence,diana,shame,fatal,flesh,jesse,qatar,sheer,witch,cohen,puppy,kathy,smell,satin,promo,tunes,lucia,nerve,renew,locks,euros,rebel,hired,hindu,kills,slope,nails,whats,rides,rehab,merit,disks,condo,fairy,shaft,casio,kitty,drain,monte,fires,panic,leone,onion,beats,merry,scuba,verde,dried,derby,annie,derek,steal,fears,tuner,alike,sagem,scout,dealt,bucks,badge,wrist,heath,lexus,realm,jenny,yemen,buses,rouge,yeast,kenny,yukon,singh,brook,wives,xerox,sorts,vsnet,papua,armor,viral,pipes,laden,aruba,merge,edgar,dubai,allan,sperm,filme,craps,frost,sally,yacht,tracy,whale,shark,grows,cliff,tract,shine,wendy,diffs,ozone,pasta,serum,swift,inbox,focal,samba,wound,belle,cindy,lined,boxed,cubic,spies,elect,bunny,chevy,tions,flyer,baths,emacs,climb,sparc,dover,token,kinda,dylan,belts,burke,clara,flush,hayes,moses,johns,jewel,teddy,dryer,ruled,funky,joins,scary,mpegs,cakes,mixer,sbjct,tooth,stays,drove,upset,mines,logan,lance,colon,lanes,purse,align,bless,crest,alloy,plots,tulsa,casey,draws,bloom,loops,surge,tahoe,souls,spank,vault,wires,mails,blake,orbit,niger,bacon,paxil,spine,trout,apnic,fatty,joyce,marco,isaac,oxide,badly,scoop,sanyo,blink,carlo,tiles,tamil,fuzzy,grams,forge,dense,brave,awful,meyer,whore,wagon,knock,peers,quilt,notre,mambo,flour,choir,blond,burst,wiley,fibre,daisy,crude,bored,allah,fares,hoped,safer,marsh,ricky,theta,stake,arbor,rifle,bulbs,waist,sewer,bosch,vitro,hyatt,romeo,turks,demos,sided,cuban,resin,linen,seals,decay,usher,skate,lynch,franc,timor,flats,heels,voter,urine,capri,towel,sears,flies,crane,popup,habit,coupe,benin,lords,tends,sixty,spark,spike,tonga,backs,soils,hunks,libya,sedan,cares,flora,kazaa,hardy,bells,denim,andre,buick,doses,baked,glove,alito,plush,weber,nelly,urged,brent,kyoto,adapt,fuels,brett,paula,stern,shawn,tutor,idiot,debit,edits,raven,slice,aspen,lemma,venus,dolby,nikki,halls,pause,demon,gabon,atari,asses,couch,downs,rogue,sdram,optic,chili,grief,sweat,masks,celeb,assoc,quake,alley,twain,boise,nevis,buffy,loyal,renal,spite,imply,chill,liner,lifts,vivid,acted,byron,skull,riley,ninja,sands,steak,cobra,gucci,threw,https,walsh,ninth,marry,wills,atoms,drake,della,rails,pgsql,fried,cairo,malls,woody,cried,plugs,coded,supra,molly,franz,palau,rival,beige,rolex,homer,gases,genus,dixon,debts,icann,avril,myths,knees,poets,woven,pedro,trent,rigid,salsa,blown,baton,abbey,bruno,evite,diets,sauna,bauer,bowls,qaeda,kitts,macau,cruel,eager,chang,pupil,feast,acura,fedex,ankle,decks,blunt,hamas,react,rises,shane,coats,aston,fairs,flute,hindi,harsh,whois,burma,cease,poles,sioux,jenna,fargo,equip,reged,hedge,curry,worms,dewey,pouch,hooks,peaks,didnt,spoon,bombs,niche,cigar,curse,forex,titan,anita,shout,nudes,straw,fgets,reuse,loses,suede,peach,uncut,stove,nixon,brady,zhang,freak,bluff,sadly,avail,hatch,stein,spill,drift,winxp,crisp,scans,onset,assay,leigh,tents,snack,pulls,squid,maxim,slate,pagan,widow,skies,kicks,canoe,juicy,moody,pedal,tuned,mayer,geoff,scrap,bella,terra,vapor,aloud,goose,winnt,hydro,playa,noisy,abide,socio,bliss,parse,jelly,mania,edwin,clare,bolts,typed,satan,megan,cheer,marty,xlibs,clamp,grape,deeds,traps,racer,guilt,sweep,doyle,ducks,vince,param,lunar,posed,forks,boxer,weigh,rodeo,moose,crush,cathy,paulo,lever,tasty,rants,tarot,carts,cocoa,mixes,panty,aires,bulls,orion,hurry,clash,biker,nauru,stain,reign,baron,bates,stiff,rabbi,sushi,puffy,elbow,stark,circa,quinn,razor,cough,tibet,isles,ovens,inlet,bronx,gloss,panda,porch,isuzu,eaten,sinks,steep,dinar,creed,carat,nobel,faxes,plump,midst,borne,tesco,tempo,getty,payne,torch,lohan,hacks,attic,piper,stems,avery,toons,tenth,desks,aided,cutie,notch,seoul,lacks,bowie,poses,scent,akron,fines,grasp,ounce,buena,toast,kumar,kinky,owens,quota,versa,starr,jumbo,maths,flint,dummy,awake,burnt,studs,roast,petty,felix,shiny,smash,braun,ample,royce,scarf,hated,spicy,fools,beard,wedge,peggy,ruins,denis,hyper,gmail,cites,ezine,gamer,alexa,savvy,terri,norms,silva,prima,zelda,fetal,palms,chord,kudoz,hawks,irons,comet,lotto,syrup,erase,bites,prose,swear,intra,clown,taboo,olson,dwarf,ifdef,pines,fucks,urges,enron,codec,pablo,beams,props,dough,stool,welch,boone,horde,mommy,nanny,roach,angus,ashes,natal,locus,msnbc,elton,prone,clues,crews,timed,scare,thief,motif,hurts,sofia,spear,nigel,jolie,blanc,birch,slash,mikes,seiko,arial,stacy,helix,dixie,shook,matte,heidi,zebra,fetch,faroe,logon,trong,unite,shear,ponds,trump,mates,avian,visas,webmd,champ,recap,astro,crawl,flaws,olsen,hazel,messy,rupee,ments,irene,lungs,vinci,jacks,stole,kirby,quasi,exile,anglo,knots,anton,gerry,kappa,jumps,snoop,vague,wraps,rusty,warns,sting,bravo,secsg,liter,nicht,basil,paced,renee,weiss,giles,shack,sleek,ariel,monty,cafes,hitch,nexus,tango,ernst,sings,carte,queer,pains,vioxx,ahmed,sobre,kuala,comma,geeks,avant,repec,perez,cimel,leica,torah,busch,tiava,freed,cheek,gavin,lasts,httpd,bowel,chats,mafia,lilly,shire,lyons,scams,lipid,clyde,irwin,mains,misty,prism,rests,vegan,corel,groom,osama,weeds,oprah,beers,clive,darby,fills,grips,kayak,altar,gears,risen,rhino,eaton,ruler,henri,swept,troop,arose,becky,lesbo,klaus,hogan,debra,cdrom,corey,slips,trays,flock,chung,boris,shave,swamp,faint,gland,blows,stoke,kauai,ipsec,undef,nasal,nitro,marin,loser,claus,hipaa,porto,jolly,femme,siege,wolfe,tyres,butte,hicks,pratt,chalk,negro,wrath,grind,clint,blitz,osaka,jorge,cooks,rainy,diggs,pluto,mitch,viola,rumor,volts,diver,blaze,wreck,sammy,arabs,brock,hoops,macon,lynne,chloe,prada,plone,horns,kylie,naomi,risky,clair,crete,tulip,ciara,damon,owing,benny,ipods,annum,roche,ropes,morse,cords,warez,ditch,slick,chunk,reels,slept,gregg,huang,ibook,waits,tenor,scrub,cello,caves,cocos,metre,thurs,topaz,soaps,ricoh,gibbs,dusty,patty,crate,kanye,cared,sworn,twink,bowen,beech,frogs,expat,agnes,glibc,maori,tense,basel,oxley,foley,moran,decal,temps,fiona,fritz,mover,erica,macos,betsy,shaun,fauna,detox,spurs,ortho,gould,eliza,usaid,darts,tails,hangs,quark,zyban,dolce,veins,folds,angie,sneak,octet,mccoy,mateo,fread,willy,edith,magna,polly,tidal,jules,ernie,poole,crust,dolly,lenox,miner,cecil,cajun,diner,regis,mound,ethan,ibiza,reese,chefs,pixar,scion,dhtml,winme,mandy,hoods,proto,jared,wears,regal,alvin,raton,curly,hound,wharf,flick,datum,maize,banff,psalm,gowns,luton,leaks,swell,ville,chico,irony,lasik,levin,amiga,viper,gypsy,litre,binds,titus,flare,wight,crank,goats,rains,brace,abdul,ryder,garth,nolan,paolo,argus,mango,thigh,carla,meats,windy,alamo,steer,vogue,aired,vodka,zaire,sakai,knobs,inlog,salts,soups,moist,trina,pests,entre,plano,doris,petit,fries,saxon,stall,deere,serif,monks,aloha,utter,rents,cater,colts,putin,dunes,pinch,flynn,troll,filth,kraft,algae,arden,byrne,shady,erect,vests,lydia,valet,cheng,eliot,jihad,elgin,jonah,raped,denon,sloan,plato,palma,taxis,hates,hague,tammy,ogden,madam,posix,libby,seite,tease,aroma,rowan,dwell,stair,sonny,rotor,quart,bison,fungi,greed,elena,bleed,serie,incur,tempe,cores,nifty,yates,leroy,infos,thanx,ecard,dukes,fudge,homme,rossi,weave,vicki,exits,siena,reiki,dante,lange,rosen,cured,buggy,recon,slack,vines,gorge,liens,musik,boyle,lamar,jonas,locke,cages,pager,jolla,banjo,stout,duane,hanna,pepsi,adler,stare,missy,meade,flair,cette,aisle,dunno,limbs,paved,scots,tyson,econo,seize,spawn,epoxy,stony,punta,crypt,bogus,jboss,faded,mobil,tying,diode,johan,motto,alton,janis,rubin,alain,deter,furry,cubes,linus,rinse,tides,venom,voyer,mummy,cries,ether,sheds,sofas,croix,boing,rosie,terre,techs,elisa,haute,wacky,reits,muddy,nuevo,asean,suche,shalt,visor,mundo,naive,hires,merck,tanya,folio,barre,fiery,fakes,fomit,ahmad,cooke,emule,acorn,bayer,basal,topps,wilde,smoky,flirt,slang,finch,largo,tally,creep,agile,sacks,kiosk,ionic,stray,poppy,suppl,turin,forte,sesso,hanoi,waive,vance,greet,lymph,sonia,bryce,latch,verbs,drank,santo,torso,ramon,dansk,hobbs,mayen,grabs,geile,wards,hinge,patti,faire,emory,stunt,maven,vitae,witty,hertz,flown,silky,micah,repay,await,fetus,cider,gangs,lenny,arxiv,percy,conan,lilac,sinus,denny,hears,lexar,pivot,huron,glide,todos,creme,waltz,paige,blush,monde,malay,modal,cadet,loren,carbs,vdata,opted,tweak,trait,shrek,eater,cymru,cyrus,hides,synth,layup,nazis,piles,bezel,havoc,sling,xoops,rican,gupta,tummy,axial,julio,epoch,plaid,fable,scars,susie,reyes,pesos,spans,obese,sober,tread,avaya,wigan,paddy,norma,astra,mondo,wyatt,otter,earns,sassy,demux,vases,garde,prweb,aries,ramps,dread,qwest,dyson,josef,casts,heinz,argos,needy,reich,weary,tweed,snowy,genie,bling,chars,mcgee,delle,fined,georg,apron,aides,forma,sendo,gomez,corba,yummy,momma,trish,sexes,husky,bland,darth,ching | |
addUserKnob {1 currentWord t "hex-encoded string of the current word\n\nit's not exactly top-level encryption, but stops you cheating by clicking on the pencil" +INVISIBLE} | |
currentWord 6d6163726f | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment