Page 3 of 4

Re: Octane Sketchup Exporter Beta h

PostPosted: Thu Jun 17, 2010 3:18 pm
by SurfingAlien
sorry...
octane.command (or octane_new.command) in your project folder

Re: Octane Sketchup Exporter Beta h

PostPosted: Thu Jun 17, 2010 5:31 pm
by Burkhard
Hi Surfin...
same error here. I sent a couple of files to TIG. Hopefully we can get it to work.

Re: Octane Sketchup Exporter Beta h

PostPosted: Thu Jun 17, 2010 5:48 pm
by TIG
Burkhard

Here are a set of variants of your Mac command files...
CommandVariants.zip
(4.04 KiB) Downloaded 352 times
Please unzip them into your project folder and double click each in turn - let me know which [if any] work...
First do the '_new' versions if it works it should make a .ocs file
If they don't make afile try making a .ocs file in the project folder manually - linking to the obj file...
Then double-click on the main command files in turn - they should open the obj in Octane and start to render it...

Other Mac users won't be able to use these as they are specific to B's project, BUT you could try making equivalent adjustments to your own command files and report back...

Re: Octane Sketchup Exporter Beta h

PostPosted: Thu Jun 17, 2010 8:56 pm
by Burkhard
Ok, here are the results:
When starting NO_ESCAPE...._new.command with a double click octane starts and imidiately shut down with : invalid drawable ( see attached )
The .ocs file was build.
After taking a double click on the NO-ESCAPE.... .command all works fine. Octane opens, the render works and it seems no problems!

Same with the other NO-ESCAPE commands except the ORIGINAL ones. Same error here as before: no such file or directory ...or... Command not found

Re: Octane Sketchup Exporter Beta h

PostPosted: Thu Jun 17, 2010 9:19 pm
by SurfingAlien
:mrgreen: GOT IT! :D
(apologies for the caps...)

please check differences between original and tweaked .command files in the attached archive (don't share the model... it's a copyrighted masterpiece :lol: )

I had to take away the backslashes from the octane executable path only, while keeping them in any other path/object/filename/etc.
I'm not sure this is the final solution but it works for me (note that my data disk is labeled "Macintosh HD" so I always have spaces in paths)

let me know if it works for you too...

cheers,
Alessandro

P.S.: TIG I'm afraid you have to place the texture files in the same folder of .obj and .mtl (I'd prefer your clean approach - dedicated folder - but you have to manually relink any texture this way)

Re: Octane Sketchup Exporter Beta h

PostPosted: Fri Jun 18, 2010 8:41 am
by TIG
Burkhard / SurfingAlien

Thanks for the testing - I suspected that the Octane PDF Guide was wrong - here's what I dragged up from the net about Mac command lines

Because the shell interprets 'words' (alphanumeric strings separated by spaces or tabs),
you need to use
either "escape" spaces or other characters with a backslash:

cd /Mac\ OS\ X/abc
or type it all with "quotes":
cd "/Mac OS X/abc"***
So the Octane Guide PDF is completely wrong with its !!! :roll:
cd \"/Mac OS X/abc\"
The \" tells the Unix shell to take the quote character " as an actual " within the text and NOT a 'wrapper' to start reading a 'single string with spaces' until it finds the next closing one - such as a file-path***...

So I will now adjust my Mac codings to have NO escaped quote characters ["] - hopefully this will now make everything work for you Mac users.
It'll be in a new beta-i topic - watch out for it later today...

Incidentally, when you run a Render Frame [or animation] the exporter checks to see if the specified .ocs project file exists [path+name+.ocs] - if it does not then it is made automatically for you - that's the function of the 'octane_new' .cmd/.command file you might find in your project folder- it is doing nothing 'wrong' when it opens and immediately closes the new .ocs project - it's the only way to get it to make the .ocs file if it's missing, using a basic setup, but then continue separately with the rendering using that .ocs file via the octane.cmd/.command file, because the command line arguments must differ in the two cases. You should not get this making+immediate_closing again when rendering your project, if the .ocs file exists. If you already have a .ocs file that you have linked to using the Project Configuration section Use Existing Project button then no '_new' command file should get made as it's never needed...

:P

Re: Octane Sketchup Exporter Beta h

PostPosted: Fri Jun 18, 2010 8:59 am
by SurfingAlien
TIG
I noted that if I don't use the \"......" form for the paths (except the first one pointing to the executable) it doesn't work (Octane can't find the .obj because of the space...)
I didn't try to leave the back slashes and take away all the quotes though

Re: Octane Sketchup Exporter Beta h

PostPosted: Fri Jun 18, 2010 9:25 am
by TIG
SurfingAlien wrote:TIG
I noted that if I don't use the \"......\" form for the paths (except the first one pointing to the executable) it doesn't work (Octane can't find the .obj because of the space...)
I didn't try to leave the back slashes and take away all the quotes though

But Burkhard seems to have it working without backslashes at all - just "..." around each string-sets with spaces in ?

I have just posted beta-i that has none in - please test and feedback - perhaps we need NOT to escape the first and last " only ?
Like "/Mac/.../octane/ -s 256 ... -r \"obj path\" ... \"ocs path\""
that way the whole thing is encapsulated in "..." and the paths [other than the app path] are encapsulated in sub pairs of \"...\" that are read as 'real' "s ???

This is very confusing... :?

Re: Octane Sketchup Exporter Beta h

PostPosted: Fri Jun 18, 2010 9:34 am
by SurfingAlien
TIG wrote:Burkhard seems to have it working without backslashes ?
I have posted beta-i that has none - please test and feedback - perhaps we need NOT to escape the first and last " only ?
This is very confusing...


yep, but Burkhard has no spaces in his (?) paths... I just tried the new beta_i (sorry for the OT) and I confirm this: I need proper \"..." to have Octane launching

the console continue to give a "invalid drawable" error but the .ocs is created and the rendering starts (with materials but no textures)

very confusing indeed...

Re: Octane Sketchup Exporter Beta h [superseded]

PostPosted: Fri Jun 18, 2010 9:55 am
by TIG
OK - beta-j is in progress :roll: