# Nuke Python question

**URL:** https://forum.highend3d.com/t/nuke-python-question/11076
**Category:** Archived
**Tags:** nuke
**Created:** [May 20, 2014, 8:04am UTC](https://forum.highend3d.com/t/nuke-python-question/11076 "2014-05-20T08:04:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [May 20, 2014, 8:04am UTC](https://forum.highend3d.com/t/nuke-python-question/11076/1 "2014-05-20T08:04:46Z")

</div>

Hi Im trying to make a basic save tool for nuke via a python script button in a node ( i know better to yse a panel but for now I need something quick) but I'm getting some errors wondered if anyone could help me - its just the creating folders that is broken&nbsp;

here is my python script:

user = nuke.thisNode()['User'].value()

seq = nuke.thisNode()['Sequence'].value()

shot = nuke.thisNode()['Shot'].value()

description = nuke.thisNode()['Description'].value()

version = nuke.thisNode()['Version'].value()

subversion = nuke.thisNode()['Subversion'].value()

folder = "/bishop/ss/shots/%s/%s\_%s/%s/scripts/nuke/%s/" %

(seq,seq,shot,description,user)

os.makedirs(folder)

#example path: /bishop/ss/shots/SB\_062/SB\_062\_0010/comp/scripts/nuke/user

path = "/bishop/ss/shots/%s/%s\_%s/%s/scripts/nuke/%s/%s\_%s\_%s\_v%s\_%s.nk" %(seq,seq,shot,description,user,seq,shot,description,version,subversion)

print path

nuke.scriptSaveAs(path)

and here is the error i get :

&nbsp;File "", line 8

folder = "/bishop/ss/shots/%s/%s\_%s/%s/scripts/nuke/%s/" %

^

SyntaxError: invalid syntax

thanks in advance!

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [May 20, 2014, 10:33am UTC](https://forum.highend3d.com/t/nuke-python-question/11076/2 "2014-05-20T10:33:14Z")

</div>

its ok i figured a way to fix it but i do have another question please see thread above
