question

Eden Exposito avatar image
Eden Exposito asked ·

Arnold Shader to C4D standard material

Hello!,

An easy to solve problem.

Now it's possible to convert a C4D material to Arnold Standard Shader with scripts placed in utility -> Materials -> ....

But a ver big problem is how reverse this operation, I mean from Standard Shader to C4D Shaders.... Why? When yo export an scene in FBX with Arnold Shaders Materials applied seems that any assignation will be preserved. But with C4D standard materials all assignations become stored in FBX file.

This is a big problem if you have hundred of Arnold shaders materials assigned and you need pass those assignation throught FBX files. I have not found a method to convert an Arnold Shader to C4D material, It's not necesary preserve Arnold Shader appareancy (altought a random color by each C4D material restored would be great) in this case with a solid it's ok if like me you only need preserve material assignations.

It would be nice a script in utility -> Materials -> "Restore selection to C4D material"

Thanks!

material
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

I see, makes sense. I can write a script for you which replaces the Arnold materials with some placeholder C4D materials to preserve the assignments.

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

It would be nice! @Peter Horvath thaaaank you!!!

Maybe it can be added in future releases of C4toA for others users with same problems.

1 Like 1 · ·
Peter Horvath avatar image
Peter Horvath answered ·

Please check the attached script. It will iterate over the objects and replace the assigned Arnold materials with C4D materials. If the Arnold material has a standard_surface root shader, it will use its base color in the C4D material, otherwise the look is not preserved.

replace_arnold_materials.zip


1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Thank you!

0 Likes 0 · ·
Eden Exposito avatar image
Eden Exposito answered ·

Thanks for your response @Peter Horvath

Yes, I want maintain material assignation only, look is not relevant. It's not possible transfer look 1:1 from Arnold Shader to Standard C4D material due both are completely different.

I need a fbx file with material assignments due that I import scene to TwinMotion (Unreal engine) and in this step I can sort all assets by materials. So I only need apply a material once time in TwinMotion... Think about if you need reapply "glass" material on every window of a big house or hotel... In my case this tedious work was done in C4toA, if you need to do again due material assignment are not preserved in FBX... you need do it twice.

Thanks!

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

If I understand correctly your goal is to preserve the material assignments in the FBX and the look is not relevant. What's your workflow? Where and how do you use the FBX? Does it have to be FBX? Arnold supports MaterialX to export material assignments (looks).

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Eden Exposito avatar image
Eden Exposito answered ·

Thanks for your response @Stephen Blair

No, FBX seems not store any Arnold Shader assignation from C4D. If you open FBX saved from a file with Arnold Shaders applied to objects, you can see that is like none material assignation was be applied.

If you need export fbx and need sort objects by material assignation and you had work with Arnold Shaders you are in a problem. Unless you have a Cinema 4D script to revert all Arnold Shaders to Standard C4D materials (due that this assignation are preserved in FBX).

Sure that with CINEMA 4D scripting an expert could do a custom script that solve this issue. (I don't find a script available on Internet to do it).

It would be great that this script become as part os C4toA in:

utility -> Materials -> "Replace Arnold Shader selection with C4D Standard material"

It's possible convert a big selection of C4D Standard materials easily and automatically to Arnold Shader with:

utility -> Materials -> "Convert the Selected C4D material to an Arnold Shader"

But reverse operation can be a pain if you have hundreds of Arnold Shaders and need to restore to C4D Materials. If you don't have a script it's a lot of manual work.

It is as if C4toA provided the automatic key to enter the wonderful world of Arnold materials in an easy way, from which it is then impossible to leave with the same ease.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

The FBX contains the Standard Surface parameter settings? I'd be surprised.

Sounds like you need to replace a do-nothing stub material with a CINEMA 4D material, so you don't need any Arnold-specific expertise, just CINEMA 4D scripting?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.