Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Export ASS with relative paths?

7 REPLIES 7
Reply
Message 1 of 8
UConn_DMD1
1869 Views, 7 Replies

Export ASS with relative paths?

I'm in the process of setting up a workflow for C4D users to utilize a Deadline Linux farm through the use of ASS files. I'm currently testing on a virtualized setup with two local test render nodes, Mac and Windows. I'm generating the ASS files on Windows, and in looking at the ASS files it seems to be hard coding the path to the texture folder, which logically doesn't exist on macOS (or Linux). I can't account for every users machine in Deadline's path-mapping, nor can I force everyone wanting to use C4D to work from the C:\, /, or file share locations.

Does Arnold support completely relative paths when using textures and similar (procedurals, etc) that can be called upon when copying the work to a file share for rendering? All the C4D nodes/options are using relative paths.

My browser isn't letting me attach extra pieces, so here's a GDrive link:

https://drive.google.com/file/d/1tPy3Ng6VtQRVQ3x8nhIqfQXBzEpDxoZJ/view?usp=sharing

It includes the C4D file, texture, ASS sequence, and Deadline's log for the Mac node. As a side note, the Windows node renders the file fine (due to the path existing).

Tags (2)
Labels (2)
7 REPLIES 7
Message 2 of 8
Stephen.Blair
in reply to: UConn_DMD1

Yes, Arnold supports relative paths. That's what texture_searchpath is for.

The image node in the ass file has just the file name. So the texture search path is used to find the file.

image
{
 name c4d|standard_surface_01|image
 filename "villa_nova_street.tx"

You just have to add the macOS path to the texture search path, so that you get something like this in the exported ass file

options
{
 ...
 texture_searchpath "/Volumes/projects/testing/tex;C:\Users\mroche\Documents\testing\tex"


// Stephen Blair
// Arnold Renderer Support
Message 3 of 8
UConn_DMD1
in reply to: UConn_DMD1

@Stephen Blair

Thanks for the reply! I had a path mapping issue going on, and I've come up with a quick solution. Work on the project locally, but generate the ASS files on the farm. Things might get funky if using procedurals however... Still need to test this.

Is there a simple way to add that path during export of the scene source?

Cheers,

Mike

Message 4 of 8

You can define the search paths on the System tab of the Render settings.

You can also set your current working directory to the project folder when rendering the ASS file and define a relative texture search path, like:

options
{
 ...
 texture_searchpath "tex"
Message 5 of 8

So if I add texture_searchpath "my_search_path" to options{} I wouldn't need to define the search path in the system tab? Can I add more than one? Can I specify both Mac and PC formatted paths? What about parent directories, i.e. "../my_sibling_path"?

Message 6 of 8

The search path on the System tab is exported to the options.texture_searchpath parameter in the ASS file. So you don't have to define the path on the system tab, if you want to edit the ASS file instead.

Yes, you can add multiple folders to the search path separated by semicolons (;), you can specify both Mac and PC format, or parent folders with the "../" syntax.

Message 7 of 8
UConn_DMD1
in reply to: UConn_DMD1

@Peter Horvath

Thanks for letting me know about this! This actually makes things a bit easier (possibly, assuming everyone remembers to set this). Is this on a per-project basis or can it be defined globally?

Cheers,

Mike

Message 8 of 8

It is in the Render Settings, so project based.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report