SOLVED Can I download a Tex in Asset Browser and add into select RS node mat?

Is it possible to download a designated tex in Asset Browser then add it into a node mat?

  1. Check the Tex on disk already
  2. If not on disk , find the Maxon Asset on network with named like si-v1_deposits_06_15cm.png
  3. Download it to disk and add it to select redshift Node as a bump map

Can I do this in S26.1(windows) with python?

Thanks(Hope I understand Form Rules this time,QAQ)

Hello @dunhou,

Thank you for reaching out to us. And no worries, everything is fine with your posting. Thank you for making the effort to adhere to our forum rules, much appreciated!

About your Question

The general answer is, yes, this is possible. There are however a few ambiguous points in your posting.

  1. You state it quite clearly, but just to be sure, you are talking about the Asset Browser and assets it, right? Because there are also a few similar concepts in Cinema 4D.
  2. Assets must not be downloaded, at least not by the user, the Asset API hides away that detail. Assets are referenced by their asset ID and refer to content stored at an asset URL. This URL can be local, but it can also be on some server. Cinema 4D, the Asset API, will handle the resolving and caching of asset URL content.
  3. So, there is no checking if an asset is on disk to be done, and assets are also not referenced by file names as for example si-v1_deposits_06_15cm.png but asset identifiers, e.g., file_edb3eb584c0d905c.
  4. What is also not quite clear to me, is what you mean when you 'redshift Node'. Are you referring to the old Xpresso based node setups, now running in legacy mode as of S26, or are you referring to the new standard nodes of S26? It is possible to link a texture asset in both cases as the bump map, but it requires different approaches.

For the S26.1 C++ docs, we recently added a small manual for Redshift wich goes through exactly that case, creating a Redshift standard node material, and linking texture assets to the channels of the material. Although it is for C++ I would recommend having a look, as the Python code will be almost identical.

There is also a plethora of other things I would recommend having a look at, such as the Python Asset API examples and the Python Nodes API examples, as your goals are only a specialization of the things shown there.

If you have questions along the way, please do not hesitate to ask. The Nodes and Asset API are two fairly complex subjects, and their documentation on Python is still in its infancy. I will provide the necessary guidance or examples where necessary.

Cheers,
Ferdinand

Thanks for your [email protected]
I use a github reference document download one year ago(It is some network problem that some time I cannot visit internet.) I will check the new Node and Asset python example first.

  1. Yes ,I am talking about asset browser. It is a new stuff to me , I will check out some example first
  2. I mean Node Editor , I think it is the furture of node in C4D(maybe xpresso can be move to new Node Editor in furture?), so please more py example on github😁
  3. Python document with Nodes is not handy for me now , I am working on some custom handy API like Arnold Render API ,Hope SDK will update soon.

Unfortunatlly ,I have no experence with C++().But I will try to read it anyway.

Thanks

Hey @Dunhou,

great, as I said, we are aware that there are currently gaps in the Python documentation. Just try to start out, and then post what you got when you hit a wall. I will help you then, i.e., write a specific Python example, if necessary, and show you how to accomplish things in Python.

The basic information is there in the Asset API and Nodes API examples for Python I have posted above. The Redshift API is just a special case for that, and it is not fully documented yet (even in C++) because the underlying integration of Redshift into Cinema 4D has not been fully finalized yet. I have pushed the C++ Manual out because I knew users will be asking for it, but this C++ Manual is also only a temporary solution. For now, we will solve Redshift API questions with direct customer support in Python.

Cheers,
Ferdinand