Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : "This script only works if your project's output is set to a directory. Please set it to a directory and try again." #3

Open
suntchan opened this issue Apr 27, 2017 · 6 comments
Assignees

Comments

@suntchan
Copy link

How can I set my project's output to a directory ???
Thank you.

@9joshua
Copy link

9joshua commented Apr 28, 2017

I have the same issue. I have an output directory set in Render -> Output, but still receive this error...

$ pulverize VSE.blend 4 '{\"keepTempFiles\":true,\"displayStdErr\":true}'
PHP Notice: Undefined offset: 0 in /home/pc/pulverize/pulverize-master/pulverize.php on line 63
PHP Notice: Undefined offset: 1 in /home/pc/pulverize/pulverize-master/pulverize.php on line 63
PHP Notice: Undefined offset: 1 in /home/pc/pulverize/pulverize-master/pulverize.php on line 65
This script only works if your project's output is set to a directory. Please set it to a directory and try again.

image

@hperrin
Copy link
Member

hperrin commented Apr 28, 2017

Those PHP notices mean that the blender info script isn't running correctly. Can you run this in a terminal for me and paste the output here:

blender -b path/to/blenderproject.blend -P path/to/pulverize/pulverize_tool.py

@hperrin hperrin self-assigned this Apr 28, 2017
@9joshua
Copy link

9joshua commented Apr 29, 2017

Output of blender -b path/to/blenderproject.blend -P path/to/pulverize/pulverize_tool.py :

The program 'blender' is currently not installed. You can install it by typing:
sudo apt install blender

I run Blender from a portable file of sorts on Ubuntu. If I install blender from the Ubuntu repository it is an old version. Is there any way around this?

@9joshua
Copy link

9joshua commented Apr 29, 2017

I installed Blender via my package manager and Pulverize worked fine. So, that problem solved for me. I'll just keep the older version of Blender on my system solely to keep Pulverize happy.
Only problem now is that one process is getting hung up. When I ran the script the time remaining was about 6 minutes, then at 74% complete the progress stopped and the ETA kept increasing...
image
Here is where the files stopped compiling...
image
I tried with 3 processors (i have 4) but got the same result. The files that are hanging up contain the hardest bit of processing for Blender as it contains a Gausian Blur over an HD png image sequence. It is a little slow (15 minutes) but works OK using Blender however.

PS: After I canceled the pulverize process my 4 processors were still pegged at 100%...
image

@hperrin
Copy link
Member

hperrin commented May 2, 2017

There is a way around it. You can either put your copy of Blender on your path, or modify your path when you run Pulverize.

Put Blender on your path (permanent):

ln -s path/to/your/blenderdir/blender /usr/bin/blender

Modify your path when you run Pulverize (not permanent, but you have to run pulverize like this always):

PATH=$PATH:path/to/your/blenderdir/ pulverize ...

@hperrin
Copy link
Member

hperrin commented May 2, 2017

My guess is that the older version of Blender from the repository doesn't support what you're doing, so the render is hanging. Try it with the above solution and let me know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants