Feedback

What's your question?

By: Asked from India

Why do I get "permission denied" error in Nuke while trying to read from disk?

Hi,

With the basic requirement that it needs , I am getting an "Permission Denied" error for what is other wise an accessible area. how is it possible to solve this.

Brgds,

kNish

input = "E:/xxxxx/knish/test/xxx-VFX_xx1/xxxxx/XX-xxxxx-xxx_xxxxxx_%05d.dpx"
output = "E:/xxxxxxxx/knish/test/xxx-VFX_xx1/xxxxxxx/xx-xxx08-xxx_Sxxxxxx_%05d.jpg"
startFrame = 1
endFrame = 35
read = nuke.nodes.Read()
read.knob('file').setValue(os.path.dirname(input))
read.knob('first').setValue(int(startFrame))
read.knob('last').setValue(int(endFrame))
print "Created node %s\n" % read.name()
write = nuke.nodes.Write()
write.knob('file').setValue(output)
write.knob('proxy').setValue(output)
write.knob('colorspace').setValue('rec709')
write.knob('file_type').setValue('jpeg')
print "Created node %s\n" % write.name()
nuke.toNode(write.name()).setInput(0, nuke.toNode(read.name()))
**nuke.execute("Write1", startFrame, endFrame)**
nuke.scriptClear()

Add comment viewed 379 times Latest activity 10 months ago

or Cancel

2 answers

  • 1

hugh_gid [ Editor ]

Might it be something to do with the fact that you've used /s rather than \s in your paths?

If you do use \s, then make sure you double them up - set your path to be something like:

input = "E:\\xxxxx\\knish\\test\\xxx-VFX_xx1\\xxxxx\\XX-xxxxx-xxx_xxxxxx_%05d.dpx"
or Cancel