Scripting : converting argv to a string

Hello,

Im having a problem that seems like its got a straight answer but I couldnt find it.

Im sending nuke external information, like [argv 0] which is a filename and a path and put it into a variable ( file = str(‘[argv 0]’) ) but when ever I refer to it it gives back argv 0 and not the content of the string itself.

The read node im passing it to displays [argv 0 ] (and shows the correct picture ) but when I print the node’s property the ‘file’ attribute displays the full path and filename. I need to grab that data.

My leet haxxor python/nuke scripting skills are lacking, I hope there is a quick way to fix it. Any ideas?

THanks!

-theo

No Responses to “Scripting : converting argv to a string”

Post a Comment