Skip to main content
adding Blender version number
Source Link

using this command blender --help to get more help about Blender command line options, you can find this snippet

--python-text <name> Run the given Python script text block

So if I'm not wrong, this means that I can specify the name of text block which I would like to auto run at Blender start.

So my final command will look like this:
blender --python-text my_text_block_name scene.blend

Where "my_text_block_name" is the name of text block I wrote and save right in my blend file.

But, when I run this command, I have the following error.

Error: text block not found my_text_block_name.

What I'm doing wrong?

EDIT:
I'm using the latest official version of Blender for linux 64bit available at this moment (2.76)

using this command blender --help to get more help about Blender command line options, you can find this snippet

--python-text <name> Run the given Python script text block

So if I'm not wrong, this means that I can specify the name of text block which I would like to auto run at Blender start.

So my final command will look like this:
blender --python-text my_text_block_name scene.blend

Where "my_text_block_name" is the name of text block I wrote and save right in my blend file.

But, when I run this command, I have the following error.

Error: text block not found my_text_block_name.

What I'm doing wrong?

using this command blender --help to get more help about Blender command line options, you can find this snippet

--python-text <name> Run the given Python script text block

So if I'm not wrong, this means that I can specify the name of text block which I would like to auto run at Blender start.

So my final command will look like this:
blender --python-text my_text_block_name scene.blend

Where "my_text_block_name" is the name of text block I wrote and save right in my blend file.

But, when I run this command, I have the following error.

Error: text block not found my_text_block_name.

What I'm doing wrong?

EDIT:
I'm using the latest official version of Blender for linux 64bit available at this moment (2.76)

Source Link

run a text block from command line

using this command blender --help to get more help about Blender command line options, you can find this snippet

--python-text <name> Run the given Python script text block

So if I'm not wrong, this means that I can specify the name of text block which I would like to auto run at Blender start.

So my final command will look like this:
blender --python-text my_text_block_name scene.blend

Where "my_text_block_name" is the name of text block I wrote and save right in my blend file.

But, when I run this command, I have the following error.

Error: text block not found my_text_block_name.

What I'm doing wrong?