Showing posts with label gizmo. Show all posts
Showing posts with label gizmo. Show all posts

Dec 4, 2014

Radio buttons in nuke

Hi, I always wanted to have the option of creating radiobuttons in the nuke gui, for gizmos. Its easier to use than dropdown menus, because they  need only on click to select the value. Today I checked the documentation, and I found an option. The radiobuttons are a different widget version of the enumeration knob. You can't add this knob like others via the "manage user knobs" panel, but you can with the help of a little python. For example like this:

n = nuke.toNode('Group1')
r = nuke.Radio_Knob('options', 'Option channels', ('red', 'green', 'blue', 'alpha'))
n.addKnob(r)

First argument is the name of the knob, second is the label, and the third is a tuple, with the radiobuttons' name in it.
Hope this was useful, cheers.

Sep 6, 2012

Applauncher - setting environment for apps

Hi, sorry for not posting for a long time. But this one is really interesting! Earlier this year we had a job to recreate a character that we used in Eset commercial. It would have been an easy thing, because we had the asset, but the arnold renderer, and shaders are changed a lot since last summer. And the config wasn't backed up properly with the project. This gave the idea that we should re-think our current application-environment-management system (what an expresssion:)
Until that point, for maya we had a lot of scripts, icons, shelves on the fileserver, that accessible for every maya; and with plugins/modules on the local machine (if it would be also on fileserver, the plugins we develop can't be updated if someone is using maya loaded that plugin.) For starting maya, artists were using a custom batchfile that copies needed plugins to local, sets some environment variables, and launches. But almost everything was hard-coded to maya.env and the batchfile.
It worked to point, but wasn't effective nor elegant. So we came up with the idea of Applauncher.
Here I give a little insight about this software, maybe useful for some of you thinking about similar solution.
It is a gui for starting maya, and nuke with the proper environment. In short: in the gui the artist chooses the project (show) and the context (lighting, dynamics, animation etc.) he/she wants to work. Then applauncher copies the needed scripts, plugins, modules etc., sets the environments and launches the application.
What is needed for the given context is stored on the network in an xml file, that is easy to edit and read. It's created by sup. before the show starts, but of course can be modified later. In the xml we define what addontype (scipts, modules etc), what addon with what version is in that environment config.
So when user chose context, and clicked on launch, the needed content (plugins, scripts etc) are copied to local disk, or if that content is already there, the copy process can be skipped. After copy, depending on addontypes the proper environment variables are set.
For maya we use following addontypes: modules, scripts, shelves, icons, additional envvars. All plugins are stored in modules: that is the most flexible type of addon.
For nuke we use much more type of addons, that are differently set for the software: gizmos, scripts, plugins, icons, luts, modules, ofx, prefs etc.
Important that on the server-side the addons are versioned, but on local they are not. Always the actual version of the addon (defined in xml) is copied.
We don't make separate addon for each gizmo, or script, it would be hard to version and manage them. Rather we chose to group them along some common attribute. For example my script package for maya is 1 addon. The other developer's scripts are another addon.

Example structure in xml, for maya:

addonGroup: modules
addon:commonscriptpack
version: 1.0
addon: userscriptpack1
version: 1.1
addon: userscriptpack2
version: 1.5
addon: yeti
version: 1.0
addonGroup: shelves
addon: lighting
version: 1.3
...
Now every artist at us uses this little gui without problems. The advantages: 1. we can restore any working environment at any time 2. much faster app. loads. 3. easier distribution of tools. I even integrated it with deadline, it was a must to run renders with same environment as the artists.
I hope this writing was understandable, and useful. If needed, I can continue telling more about this, because I think it has really nice logic, and features, that now is proven to be very useful.
Further reading on this theme in these topics: 1 2 3



Apr 8, 2012

New gizmo - PaintTrajectory

Hi,

I was watching some nice motiondesign lately (from Polynoid, great artists) and was wondering how to create nice animating thin lines in 3d space. Or at least how to draw a motionpath of something in 3d. I was experimenting with particles for a while but I found that way slow for this. But the great new python docs comes to rescue! I remembered a 2d solution for drawing a track with a paint node. And another one with projecting a 3d point to screenspace. So almost all credit goes to docs writer(s) (Frank Rueter I assume) I hacked together the 2 scripts, a bit rewrite here and there, and created a gizmo for it.
What is does:
Connect the viewing camera to cam input, and link a (animated) 3d point (that can be seen by the camera) to motionpath knob, and run. Spits out a rotopaint with the trajectory painted. In the paint node on stroke tab, set the pressure alters to size, and uncheck opacity (sorry, do it manually at this time), and you can see that the further the point from camera, the thinner the painted line. Change the brush size to make it thicker. If the bounding box clips the stroke, put a crop before the rotopaint.
Here is a picture showing what I'm talking about:



I hope someone find it useful, you can download it from here.
It's still very alpha, keep in mind.
By the way I plan to copy all my extension to nukepedia soon, just need to find some time to organize them :)

Oct 17, 2011

Nuke gizmo - SelectionWizard

Hi, as I promised, new gizmo coming (that makes working with many nodes much easier). It's a simple one, and it can be familiar for maya users. You can store node selection sets. Select a group of nodes, click on a set in the dropdown menu, and press "Replace with current selection". The names of the selected nodes will be written in the textfields. You can restore the selection anytime by pressing the button "Select chosen set". Currently there are 4 possible sets, but I'm planning to rewrite it soon to have the possibility to add any number of sets. Another plan is to make operations between the set and current selection (like union, intersection, subtraction etc.) Please comment, if you need these features, to urge me! :)
Download it here

Oct 14, 2011

Nuke gizmo - Multiknobchanger

Hi,
after finishing a work where I created a lot of rotating cubes with each side mapped with different plates, I have a few custom things to share regarding work with many items. First here is the beta version of a gizmo, that does operations on every selected node's specific knob. It's like a gizmo called "changemultiknobs" if you know it, but it can do more:
- set all knobs to an absolute value
- adding keyframes at current frame, at each knob's current value, or each knob at a specific value
- add expressions to knobs
In the first field of the gizmo you can put a knob name like, "size". If it's a multi-value knob, you can write "size.0" or "size.1" for only width or height of size knob.
You can download it from here.
Will share more gizmos in the near future.
Gabor

Sep 7, 2011

Nuke gizmo: striper

For previous ESET project I made a gizmo, that's creating random rotating circle shape stripes. You can download it here. You need to put only the gizmo to your menu.py, the python file just need to be in a folder visible for nuke (in nuke plugin path).
Sample video:

Mar 16, 2011

Quick tip - Nuke gizmo input connection name

When creating a gizmo with multiple input connections, it's useful give names to the connections, so the artist will know what to connect. Here's a screenshot of a gizmo I'm creating:


Here I have two connections named "seq" and "cam". This can be achieved by renaming the input nodes in the gizmo/group from "Input1", "Input2" etc. to "Inputseq", "Inputcam". The string after the word "Input", in the node name, will be the name of the connection.

Mar 4, 2011

New nuke gizmo - rotator

Do you need to rotate a wheel in nuke? Do you have the translation for it but it needs to rotate accordingly? Here's the solution: rotator gizmo! Premiere here, now. Put the gizmo in your menu.py. Assume you have a wheel plate in the starting position, matted with alpha. Put down the gizmo from menu, connect after the wheel. Holding down ctrl, move the center sign to the center of the wheel (the translate knob should remain 0). Then drag the dot named "outside" to anywhere on the wheel circumference. You can test the rotation now by dragging the center sign without pressing control (changing the translate knob). Currently it does proper rotation only from this starting point, but in any direction. Then put the translation animation in the translate knob and you are done. Turn on motionblur if you need.
Comments, feedbacks are welcome!
I will put this on nukepedia/creativecrash, as the others, but after a little while. So if you want to get the new gizmos/scripts I make as soon as possible, come back, here you can find them!

Sep 15, 2010

Preseter for nuke 1.0beta1

Hi,

here is s quick solution for having a few different variations of node setups in nuke, without saving different versions. So on a review session with the director sup etc., you don't need to always open/save scripts for considering different versions of color grading etc. You select the nodes need to change, press getNodes button. Then you can store all the knob values for these nodes, maximum in 4 different versions, when pressing set1-4, and these can be restored - what a surprise - with the restore1-4 buttons. Note that this version currently stores these in memory, so these aren't saved with the script. Next version will do that :) And because of this you may not want to have more than 1 preseter node in the script, they can be confused... :)
You can donwload it here

As usual, comments, feedback are welcome!
Gabor

Feb 6, 2010

Heathaze gizmo

I always wanted to have a decent heathaze plugin for nuke. My problem with heathaze plugins in other composite softwares was they look so uniformly distort the image. For this reason I have put together one, that is not so uniform. So I'm releasing here my heathaze gizmo for nuke, you can download it from creativecrash.
Note that this gizmo is not a usual heathaze, as it doesn't distort the image, it just creates a red-green noisy image, that can be used with an idistort node as distortion channels. More explanation can be found in the tooltip of the node.