Page 1 of 2

Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Wed May 04, 2022 10:39 am
by zomtech
I posted this in the Facebook group and was made aware that I should use this forum as FB is not an official feedback channel.

When I create a material and add an image texture node, it immediately opens a search file window and prompts me to select a texture. So far so good.
When I select a texture, it creates an ABSOLUTE path to said texture. In older octane version this automatic search file window wasn't a thing and you had to press the "..." first.

My problem is, that this behavior prevents C4D from asking if I want to copy my assets to the project structure. Standard C4D behavior is a prompt that asks me if I want to copy the texture to the "tex" folder -> if I deny this, it creates and absolute path.

Absolut paths might make sense for global resources that are used in many projects, e.g HDRI files, surface imperfections, etc.
But there are dozens of cases where one would need customized, specific texture maps for a project and it would be beneficial to copy them to the projects TEX folder. But even if I copy the texture to the TEX folder manually and select it in that automatic dialogue, it creates an absolute path to that texture.

I know this was implemented to save some time, but I talked to some users, many just click on the "..." option again, select the same texture to get the normal C4D prompt that asks to copy the assets. Others just don't use that feature at all and copy everything to the TEX folder manually... or they drag and drop the files from an explorer window that they have always open on a secondary screen. This could all be prevented if octane wouldn't just override / suppress the C4D prompt that asks to copy the files.

TL;DR, a video:




Also, for those who only use absolute paths and wonder why I want an relative path:
If I copy that project to a new drive, change the name or location of the project I have to go through every material or use the octane texture manager to fix all the path names.... it's very crucial to use relative paths.

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Fri May 06, 2022 5:37 am
by champton
I wrote a script to fix this issue you're talking about, if you'd like i can share it with you.

It will go through every material in your project, every node, and search for image textures. Then, it will copy those files to a projects local folder, and fix the reference in every image texture.

Let me know!

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Fri May 06, 2022 4:47 pm
by jayroth2020
That sounds very helpful! Can you post here?

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Fri May 06, 2022 10:49 pm
by aoktar
"create a copy at the project path" window is not a plugin related function. It's automatically provided by C4D, and I don't know a way to call it from plugin side. Other than this I'll change the behavior of creating absolute paths on creating the images on creation. It's simply a missing functionality in this section.

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Sat May 07, 2022 8:36 am
by zomtech
aoktar wrote:"create a copy at the project path" window is not a plugin related function. It's automatically provided by C4D, and I don't know a way to call it from plugin side. Other than this I'll change the behavior of creating absolute paths on creating the images on creation. It's simply a missing functionality in this section.
Thank you! <3

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Sat May 07, 2022 8:37 am
by zomtech
champton wrote:I wrote a script to fix this issue you're talking about, if you'd like i can share it with you.

It will go through every material in your project, every node, and search for image textures. Then, it will copy those files to a projects local folder, and fix the reference in every image texture.

Let me know!
That would be awesome! Can you post it here so everyone can use it? :)

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Sun May 08, 2022 3:23 am
by champton
jayroth2020 wrote:That sounds very helpful! Can you post here?
zomtech wrote:That would be awesome! Can you post it here so everyone can use it? :)
Got you. I uploaded it here to Gumroad as a free download.
https://bluntaction.gumroad.com/l/fiximagetextures

Let me know if it works for you!

Btw zomtech, I'm a huge fan of your work.

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Tue May 10, 2022 9:01 am
by pxlntwrk
Hi,
many thx for that, very helpful !

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Thu May 12, 2022 10:10 am
by ceen
aoktar wrote:"create a copy at the project path" window is not a plugin related function. It's automatically provided by C4D, and I don't know a way to call it from plugin side. Other than this I'll change the behavior of creating absolute paths on creating the images on creation. It's simply a missing functionality in this section.
If possible please give use a tick box or pop up to choose which one we want. Many people constantly switch between the two

Re: Image Texture Node missing C4D's "Copy Assets to Project"

Posted: Fri May 13, 2022 1:36 pm
by boxfx
champton wrote:
jayroth2020 wrote:That sounds very helpful! Can you post here?
zomtech wrote:That would be awesome! Can you post it here so everyone can use it? :)
Got you. I uploaded it here to Gumroad as a free download.
https://bluntaction.gumroad.com/l/fiximagetextures

Let me know if it works for you!

Btw zomtech, I'm a huge fan of your work.
Is there an idiots guide on how to use this? If I add it to R25's plugins folder, nothing shows up under plugins or in the commander. The script editor remains blank.