It depends how robust you need it - you can parse the Tcl syntax
similarly to
https://github.com/julik/tickly
..of which there is a simple Python implementation:
https://gist.github.com/julik/7656373
Then you can just open() the .nk file, call the parse function, and find
the data you need.
However there are fairly obvious cases where that will fall down, things
like clones and expressions.. at which point you pretty much have to
load the script into Nuke somehow (anything from scriptRead'ing the
nodes into a group to launching a new Nuke process in a subprocess)
On 07/06/16 12:13, Mike Frank wrote:
Also you can maybe use headless python as a separate process. Never
tried something like that though.
On Jun 6, 2016 7:42 PM, "Mike Frank" <michaeljfr...@gmail.com
<mailto:michaeljfr...@gmail.com>> wrote:
Yeah. Hard to say without seeing your use case in detail.
If you only need a node here or there and it's pretty
straightforward, parsing might be the way. You can load the bits of
.nk text you need into the clipboard and paste it in.
Safest way though would be to instantiate all of it in nuke and
prune it out.
I am after colourcorrection nodes inside group nodes.
I am not sure what is the best way to go.
Building some kind of file parser or doing some hacky import and
delete nodes stuff.
Maybe there is a better way.
Hi Igor - I hope you are doing well.
Cheers,
Vincent
Am 06.06.2016 19:06 schrieb "Igor Majdandzic"
<subscripti...@badgerfx.com <mailto:subscripti...@badgerfx.com>>:
What kind of information are you after?
Am 06.06.2016 um 18:27 schrieb Mike Frank:
I believe you would need to hand parse the .nk file to achieve
this. I may be wrong, but if all you need is the node classes
or certain specific data it shouldn't be too hard.
On Jun 6, 2016 7:48 AM, "Vincent Langer"
<m...@vincentlanger.com <mailto:m...@vincentlanger.com>> wrote:
hi there,
is there an easy way of loading in nukescript information
without having to import the nodes to the current script?
A function that gives me all nodes from a selected .nk file.
cheers,
Vincent
--
Vincent Langer
Uhlandstr. 29
71634 Ludwigsburg
+49 176 965 177 61 <tel:%2B49%20176%20965%20177%2061>
www.vincentlanger.com <http://www.vincentlanger.com>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
CHIMNEY
*Igor Majdandzic*
Compositing Supervisor
__CHIMNEY Deutschland GmbH & Co. KG__
__Hanauer Landstraße 196__
60314 Frankfurt am Main
__Direct: +49 69 989 56 431 <tel:%2B49%2069%20989%2056%20431>
-*NEW PHONE NUMBER*- __
__Fax: +49__ 69 904 36 68 29
__Mobile: +49 176 321 375 72 <tel:%2B49%20176%20321%20375%2072>__
__Berlin, Frankfurt/Main, Stockholm, Malmö, ____Warsaw,
Copenhagen, Sydney, Singapore__
www.chimneygroup.com <http://www.chimneygroup.com/>
__AG Charlottenburg HRA 44507 B; Pers. haft. Gesellschafter:
Chimney Deutschland GmbH__
__AG Charlottenburg HRB 130013 B; Geschäftsführer: ____Ralf
Drechsler, __Michal Kalinowski,Carl Henric Larsson
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python