Loading an .obj by Octane command line

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Hi folks,
I need some help with something myself today.
I want to have Octane load an .obj by command line.
The instruction would come from a Shell statement in a vba macro running in Solidworks.
My question is, must I have a .ocs just to load it? and how does the command look C:/..../octane.exe - this.obj ... ? :roll:
Its not clear to me from reading the manual what the command should be.
I don't want to have Octane render, just load the .obj automatically so I can tweak materials, camera view etc and then I will start the final rendering manually when I am happy.
Thanks :)
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
Tugpsx
Licensed Customer
Posts: 1151
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

Code: Select all

octane –e –r C:\Temp\NewGeometry.obj –m OctaneTest.obj –s 1000 –o C:\temp\test.png C:\Temp\OctaneTest.ocs
Page 134 of the manual
For example, to open a file (C:\Temp\OctaneTest.ocs),
relink the geometry (C:\Temp\NewGeometry.obj), select
the meshnode (OctaneTest.obj) and render the
frame for 1000 samples per pixel, save the render and
exit:
Win 11 64GB | NVIDIA RTX3060 12GB
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Yeah but that's if you have a .ocs
Can I load a .obj without one?
I'm confused, maybe I should just try it... :roll:
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

Use: octane -l C:\Temp\NewGeometry.obj

Use the -l option to create a new mesh node. If you specify an OCS file and use -r and -m, the OBJ file is loaded into an existing mesh node.

--
Roeland
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

OK thanks.
This seems to work only when the .obj file is on the C: drive. Is that right? :roll:
Would be handy if could use other drives as well ;)
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

It should work no matter on which station the file is located. Just give a correct relative or absolute pathname to the OBJ file. (e.g. D:\somewhere\geometry.obj, or ..\somewhereelse\test.obj).

--
Roeland
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Hmmmm, OK my bad. I found it won't work with spaces in the .obj path.... ;)
A bit inconsistant because the first part of the command with the path to the Octane.exe had spaces.
Be nice if I didnt have to have underscores because I have a lot of files with spaces. :roll:
Thanks for the help :geek:
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

You need to make sure your shell doesn't cut filenames with spaces into multiple arguments. Under most shells you need to put these filenames between quotes.

--
Roeland
User avatar
pixelrush
Licensed Customer
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

OK thanks again :)
I am a beginner in vba ;)
experiments....... :roll:
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
Post Reply

Return to “General Discussion”