Hi !
You should try to retrieve your node positions by using the python methods.
parent1.ypos() instead of parent1['xpos'].value()
#Example3 ypos by itself
parent3 = nuke.nodes.Dot()
parent3.setXYpos(400,0)
child3 = nuke.nodes.Dot()
child3.setInput(0,parent3)
child3.setXYpos(parent3.xpos(), pare
Hi everyone,
Is it possible to copy a node as an instance ? What I want is two exactly same
nodes with same settings. When changing a setting from a node it changes the
other one's.
Basically, it's kind of the same as using expressions, but with all the node's
settings. (We can't put expressio
Hi,
In the node graph that works (Alt+K), but I have to write it in python...
Any ideas ?
thx
___
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo
Many thanks Howard,
it is what I have been searching for. Shame on me, I did not checked the Nuke
python API from the Foundry...
Justin
___
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support
Hi !
Few years later, the problem is still here. When using :
node = nuke.clone(NodetoClone, inpanel = False)
The panel is still been displayed.. However I found a solution (which might not
be the best though, but it still working). Just hide the panel:
node.hideControlPanel()
Be aware, that
Hi,
Many thanks for your reply. I've already tried nuke.cloneSelected(); It indeed
doesn't open the panel. I had to rewrite a bit my code.
In another file I previously had a node selected:
self.mergeNodetoClone['selected'].setValue(True)
Then:
nuke.cloneSelected()
#The cloned node is auto
What is the error message ?
Are you sure nuke.thisNode() return a node in your code ?
Try :
Code:
n = nuke.thisNode()
n.name()
in your code, to check it.
Cheers,
Justin
___
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://
Hi !
Simply use the input() method:
for i in nuke.selectedNodes():
i['label'].setValue(str(i.input(0).name())
Obviously, if you want the name of the second parent, you may want to change
the argument: input(1) etc
To list the channels used by the input node:
nuke.selectedNode().input(0)
Hi all,
I'm having a strange issue with my flipbook UI in Nuke (the option panel to
launch a flipbook)
I've created a custom flipbook (RV); and registered it.
It appears in the combobox and work well when I press OK.
However, everytime I change the combobox value, the panel is been
duplicated!
S
Hi Jesse,
Thanks for taking a look at my problem, I still didn't find what was the
cause. It is working properly on Mac btw.
Here is the code:
#
import platformimport sysimport os.pathimport reimport threadimport
nukeimport subprocessimport n
Hi all,
When I do a first *scan for versions* in Studio I can retrieve all my
renders versions. Then if I delete or move a version renders; I got an
offline item in my list version when I press V. Which is normal.
What can I do to prevent having an offline version item in the list version
when pr
Hi Howard,
If I understand you want to set different expression for each box field ?
You could do it like this :
nuke.selectedNode()['box'].setExpression(stringExp1,0) #box.x
nuke.selectedNode()['box'].setExpression(stringExp2,1) #box.y
nuke.selectedNode()['box'].setExpression(stringExp3,2)
Hi Fredrik,
You can also use the onScriptClose callback maybe ?
http://docs.thefoundry.co.uk/nuke/90/pythondevguide/callbacks.html#onscriptclose
Cheers,
J
2015-04-23 9:05 GMT+01:00 Ben Dickson :
> You can run code when the python interpreter exits with the 'atexit'
> module:
>
> https://docs.
Hi guys,
I try to retrieve the name and label of the direct input to display it in
the current node label.
I tried using TCL:
[value input.name]
[value input.label]
But this is not updating when changing the input in the nodeGraph.
What is the best way to do it ?
I tried using python: [pyth
issues in the past without ever finding a way to fix it.
>>> Seems like expressions in text fields aren't being refreshed until the
>>> DAG is being redrawn?
>>> If anyone knows the answer to this I'm interested as well.
>>> On 23 Apr 2015 19:56, "Just
Hi Alex,
I believe it should works. You can have a look at the built-in tool at :
[...]/Nuke9.0v4/pythonextensions/site-packages/hiero/ui/RenameTimelineShots.py
>From line 77, you can find how tokens are used. You can probably write your
own function to resolve custom tokens.
I think you'll have
Hi all,
I'm working on customizing the Toolset creation process.
I'd like to find the built-in 'create' icon in Toolsets (tool with a +).
I can't find it anywhere. I suppose it must have been renamed ?
Although in the toolsets.py from Nuke we are calling the icon with
'ToolsetCreate.png'
Thanks,
\ic_toolsets1.png
>
>
> So I guess all I can do is confirm that you're not the only one with the
> issue.
>
> Let us know if you find it.
>
>
> Erwan
>
> *Erwan* LEROY
> www.erwanleroy.com
>
> On Tue, May 26, 2015 at 7:06 PM, Justin GD wrote:
>
>
there but not the "parent"
> icon.
>
> For some reason..
>
> print nuke.menu('Nodes').menu('Other').icon()print
> nuke.menu('Nodes').menu('ToolSets').icon()
>
> ..doesn't return anything. I can't seem to access any o
Hi All,
Quick question:
Do (menu) icons (png) have to be placed in one of the nuke plugin path ?
Or can a .py script in the nuke path refer to icons elsewhere? (Desktop for
example)
Thanks,
Justin
___
Nuke-python mailing list
Nuke-python@support.thefou
dreé K
>
> 2015-06-16 11:03 GMT+02:00 Frank Rueter|OHUfx :
>
>> I haven't verified it in a while but afaik you can give the full path
>> for icons that can be live anywhere, but if they live in a plugin path you
>> can just refer to them by name.
>> At least
Hi all,
Is there a specific method to dynamically create an input node inside of a
group ?
Just like on a merge node, where we can drag pipes from the left side as
many as we want.
Is it even possible to do it in python? Related to callbacks ?
Cheers,
Justin
ere could give you a better
> answer.
> On 11 Aug 2015 23:56, "Justin GD" wrote:
>
>> Hi all,
>>
>> Is there a specific method to dynamically create an input node inside of
>> a group ?
>>
>> Just like on a merge node, where we can drag
tNode)
>
>
> Disclaimer: I wrote this directly into the email, so it's completely
> untested, but hopefully it helps.
>
>
> -Nathan
>
>
> *From:* Justin GD
> *Sent:* Tuesday, August 11, 2015 9:52 AM
> *To:* Nuke Python discussion
> *Subject:* Re: [Nuke
Hi All,
A quick question: is it possible to run NukeStudio from the terminal and
export shots without using the interface ?
Just like it is possible to render a nuke script in non interactive mode.
I'd like to export following an existing shot preset; How do I indicate the
preset I want ?
Thank
Hi all,
That's a good question;
I've been using the *with *statement as well with success.
I'm curious of what is the best method.
Cheers,
Justin
2015-11-17 17:24 GMT+00:00 Den Serras :
> This leads to a slightly tangential discussion... I used to always use:
>
> with group:
> (inner node
end()
>
> It's worth noting that Nuke currently always returns the current context
> to the root node when a group context is exited, rather than to whatever
> context it was in before the context was changed to the group, though this
> is logged as a bug.
>
> Hope that hel
Hi all,
If I want to 'conform' a .fbx camera in NukeStudio; what would be the best
way to implement it in python ?
I could use Maya to re-export but I would prefer to be Nuke Studio
dependent only.
Are .chan files obsolete or still good to use in a pipeline ?
Cheers,
Justin
_
Hi Den,
I guess you could create a nuke script as same as a Nuke Studio nuke script
exporter..
[...]pythonextensions\site-packages\hiero\core\nuke\Script.py
You have the ScriptWriter class with a method called *writeToDisk *that uses*
nuke.saveToScript( scriptFilename, fileContents )*
Maybe th
system and open it all through Python.
>>
>>
>>
>> Ron Ganbar
>> email: ron...@gmail.com
>> tel: +44 (0)7968 007 309 [UK]
>> +972 (0)54 255 9765 [Israel]
>> url: http://ronganbar.wordpress.com/
>>
>> On Wed, Dec 2, 2015 at 11:4
Hi all,
I try to execute a writeGeo node in a script using the nuke module outside
of Nuke.
I get a new file exported but loose the animation information.
I use this :
nuke.execute(writeGeo,int(startFrame), int(endFrame))
Also, I do get this error which is most likely linked to my problem :
Tr
Sry the error is :
ImportError: DLL load failed: The specified procedure could not be found.
2016-01-04 16:24 GMT+01:00 Justin GD :
> Hi all,
>
> I try to execute a writeGeo node in a script using the nuke module outside
> of Nuke.
>
> I get a new file exported but l
you log a support request with support please and we'll try and get
> you a more comprehensive answer (or a fix)
>
> Best regards.
>
> F.
>
> On 4 January 2016 at 15:28, Justin GD wrote:
>
>> Sry the error is :
>>
>> ImportError: DLL load failed: The spe
Hi All,
I have two questions for you regarding NukeStudio & its hiero module :
1. Nuke can be imported as a module in python. Is it possible to do the
same with hiero.core ?
2. If not; I'm trying to launch NS in batch mode and call a python file :
[pathToNukeExec] --studio -it myFile.py
In myF
you, it's something I would very much like to see
> as I have a suite of tools that would benefit from being CLI-only.
>
> Needless to say, it is on our road map.
>
> Best regards
>
> Frank.
>
> On 16 January 2016 at 18:55, Justin GD wrote:
>
>> Hi All,
>
Hi Simon,
Could it be because you import nuke in your slot ? Meaning that the scope
is that function only ?
http://stackoverflow.com/questions/3095071/in-python-what-happens-when-you-import-inside-of-a-function
Cheers,
Justin
2016-03-19 22:25 GMT+00:00 Simon Björk :
> I'm trying to import the
ct because Nuke ships with it's own version of PySide
> and that's what's used in the nuke module?
>
>
>
> ---
> Simon Björk
> Compositor/TD
>
> +46 (0)70-2859503
> www.bjorkvisuals.com
>
> 2016-03-20 12:48 GMT+01:00 Justin GD
Hi Frank,
That sounds cool ! I'm quite interested to help if some people want to
connect and work together to code & solve some problems other users have.
I had a look at the vote section on Nukepedia; I have a question :
- Are the ideas submitted "one sentence" only ? Or will we be able to
descr
Hi Graham,
You can import EDL, XML and I suppose AAF with the function importSequence
:
p = hiero.core.newProject()
topLevelBin = p.clipsBin()
seq = topLevelBin.importSequence(EDLPath)
You can then reconnect your media using:
seq.matchMedia(mediasPath)
Cheers,
Justin
2016-04-01 7:36 GMT+01:00
Hi Frank,
I've done some tests, but I get the exact same problem. Viewer's menu
interface get the custom guides while it's knob get a 'blank' value, which
cause an error.
Might be a BUG ?
2016-07-03 23:34 GMT+01:00 Frank Rueter|OHUfx :
> Anybody?
> Am I the only one seeing this problem?
>
>
>
I had the same code as Matthieu's. Re-tested it with his actual code. Still
the same problem on my side...
Nuke 9.0v7 , 64bits
CentOS release 6.5
2016-07-06 8:21 GMT+01:00 Mads Lund :
> Just tested Matthieu's code, and it works fine here.
> Nuke 9.0v8 and 10.0v1, Centos 6.
>
> On Wed, Jul 6, 201
Hi guys,
I'm not sure I've followed all the feature of nuBridge; but I believe it
would make sense to agree and define coding 'standards' to make it
accessible to a larger users & developers community.
Also, it would be nice to develop a new layer of python functions that we
could use as a standa
Hi all,
Quick question, if I want to create a shuffle node with its 'in' parameter
set, I get an error from python as it interpret it as a keyword. How can I
bypass this ?
shuffle = nuke.nodes.Shuffle ( label = layer,
in = layer, <-- ERROR
odes.Shuffle (**{'label': layer,
>> 'in':layer,
>> 'postage_stamp': True})
>>
>> On 19/09/16 17:47, Justin GD wrote:
>>
>>> Hi all,
>>>
>
Hello,
You could use the addOnUserCreate callback .
I guess something like this :
def hidePanel():
nuke.thisNode().hideControlPanel()
nuke.addOnUserCreate(hidePanel)
Cheers,
Justin
2016-11-16 15:31 GMT+00:00 Bruno-Pierre Jobin :
> Hello,
>
> I’d like to add a callback that acts on every
Hum I had a try; the callback is called properly but the hideControlPanel()
doesn't have any effect.
Could it be that the callback is executed before the panel is shown ?
Anyway, here is a workaround that work for me :
def hidePanel():
nuke.thisNode().showControlPanel()
nuke.thisNode().hi
46 matches
Mail list logo