[python {os.path.dirname(nuke.thisNode()['file'].value())}]
this should get you started
On Tue, Oct 23, 2012, at 09:13, Marc Gutowski wrote:
Vincent Langer wrote:
-->
--> hi smart scripting people!
i want to add in each readnode a small expression in the label field
which shows the folder in which the image sequence lies in.
like when you add [frame] in there!
i do not get the expression string coversion stuff
is there a way to use python in there?
cheers,
Vincent
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-->
hi,
this does the job:
[python nuke.thisNode().knob("file").value().rpartition("/")\[0\]]
of set the real strings via python snippet;
use this oncallback/node creation/ read nodes
for node in nuke.allNodes("Read"):
node.knob("label").setValue(
node.knob("file").value().rpartition("/")[0]+'/' )
_______________________________________________
Nuke-python mailing list
[1][email protected],
[2]http://forums.thefoundry.co.uk/
[3]http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
References
1. mailto:[email protected]
2. http://forums.thefoundry.co.uk/
3. http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Hugo Léveillé
TD Compositing, Vision Globale
[email protected]
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python