Meta Extract Command-Line tool in Python - Nuke

Tools of the trade, new plug-ins, log c etc.
Post Reply
Mohamed Selim
Posts: 7
Joined: Tue Aug 16, 2016 12:48 am

Hi

I am trying to execute the command line tool from within the Python script editor in Nuke.

I have something like this:

Code: Select all

import subprocess
tool = "/Users/user-name/ARRIMetaExtract_CMD_3.4.5.50_osx"
args1 = '-i /Volumes/Work_RAID0/Work_02/Alexa_Plates/L001C028_140110_R6MS/2880x2160/'
args2 = '*.ari'
subprocess.Popen([tool, args1, args2])
This always gets stuck at Scanning....
Check attached


Although it works great when launched from Terminal.
You do not have the required permissions to view the files attached to this post.
Jan Heugel
Posts: 516
Joined: Wed Aug 13, 2014 3:15 pm
Location: Munich, Germany
Contact:

Dear Mohamed,

I passed your request to our developer, he wrote: "argument 2 ('*.ari') is not supported like this, .ari/.dpx follow the sequence parser; hence it is sufficient to supply the path in which AME should look

Like this:

Code: Select all

import subprocess
tool = "/Users/user-name/ARRIMetaExtract_CMD_3.4.5.50_osx"
args1 = '-i /Volumes/Work_RAID0/Work_02/Alexa_Plates/L001C028_140110_R6MS/2880x2160'
subprocess.Popen([tool, args1, args2])
Kind regards,
Jan
Jan Heugel
Application Engineer
Mohamed Selim
Posts: 7
Joined: Tue Aug 16, 2016 12:48 am

Hi Jan

Thank you but I have tried your suggestion and ignored the file extension argument and still it gets stuck at scanning.

I have also tried this code from an a regular python IDE and same problem.

Also this code should work but produces the same problem, stuck at Scanning...

Code: Select all

import os
os.system("/Users/user-name/ARRIMetaExtract_CMD_3.4.5.50_osx -i /Volumes/Work_RAID0/Work_02/Alexa_Plates/L001C028_140110_R6MS/2880x2160")
Mohamed Selim
Posts: 7
Joined: Tue Aug 16, 2016 12:48 am

Update:

The os.system command works great on windows.

Probably something I'm missing in OS X.

Will update you if I fix it in case someone else wants to know.
Post Reply