Saving an OSL

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

nejck
Licensed Customer
Posts: 181
Joined: Fri Sep 28, 2018 5:24 am
Contact:

Hello peeps,

So I'm doing some OSLing and I'm kind of stuck with something, would appreciate your help :)

After writing and saving an OSL texture I'm noticing its super cumbersome to have to go into the OSL Texture and bring up the saved OSL script via that dropdown menu. It gets really tedious if its an often used OSL that you reuse in every other material.

So I guess I'm wondering, am I missing something or is there no way to save a custom OSL Texture and have it some closer than having to browse through the dropdown / load it from disk every single time?

Hope I'm making sense here :?
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

What's your advice to have a better method?
You can store any OSL node in content browser to re-use again If you like that
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
nejck
Licensed Customer
Posts: 181
Joined: Fri Sep 28, 2018 5:24 am
Contact:

Hey Aoktar, thanks for chiming in :)

So maybe I'm doing it wrong but saving it in the content browser doesn't allow for a drag & drop functionality, at least in R21. Maybe I'm doing something wrong but it just doesn't seem to work.

As for suggesting a different method of quick access... Personally, I'd be immensely excited to see a custom category in the Octane node editor menu (the one on the left) where you could drag & drop different OSL shaders. I know it could get cluttered quickly but thats why that search functionality you've implemented is so great :)

I do fear that that would require a ton of technical work from your side although I feel like that currently why I'm mostly avoiding OSL tasks is because even for a "simpler" thing such as a complex IOR OSL shader I need to go through the script browsing game every single time. I suppose my argument would be that having custom OSL shaders somewhere more easily accessible would perhaps even popularize their usage more. There are quite a few things we can do with OSL that are really powerful.

So thats just stuff of the top of my head. I'm curious to hear what you / and other users think :)
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

I'd love a dedicated OSL sub-category in the Node Editor Side Menu, too. It seems like a good way to take advantage of the power of OSL (which I suspect many people find a bit intimidating to use and explore,) while still conforming to the Octane philosophy of providing just basic nodes for the user to assemble appropriately.

Even without any user generated code or tweaks, there's an awful lot of very useful stuff shipped with Octane over the last couple versions, but it's all hidden away inside the OSL node and its sub-interface. I think the functionality would get a lot more use if it was closer to the surface and more readily accessible.

Since there is already the "external" option for loading OSL, perhaps a dedicated /osl_scripts/menu directory could populate the Side Menu. Those Side Menu scripts would have the "External" option on by default, but could easily be switched to unique code when needed.

Just my 2¢.
Animation Technical Director - Washington DC
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

frankmci wrote:I'd love a dedicated OSL sub-category in the Node Editor Side Menu, too. It seems like a good way to take advantage of the power of OSL (which I suspect many people find a bit intimidating to use and explore,) while still conforming to the Octane philosophy of providing just basic nodes for the user to assemble appropriately.
It's actually on my todo list. But thanks for confirming how much it's a good idea.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
nejck
Licensed Customer
Posts: 181
Joined: Fri Sep 28, 2018 5:24 am
Contact:

frankmci wrote:I'd love a dedicated OSL sub-category in the Node Editor Side Menu, too. It seems like a good way to take advantage of the power of OSL (which I suspect many people find a bit intimidating to use and explore,) while still conforming to the Octane philosophy of providing just basic nodes for the user to assemble appropriately.

Even without any user generated code or tweaks, there's an awful lot of very useful stuff shipped with Octane over the last couple versions, but it's all hidden away inside the OSL node and its sub-interface. I think the functionality would get a lot more use if it was closer to the surface and more readily accessible.

Since there is already the "external" option for loading OSL, perhaps a dedicated /osl_scripts/menu directory could populate the Side Menu. Those Side Menu scripts would have the "External" option on by default, but could easily be switched to unique code when needed.

Just my 2¢.
Yep, I couldn't have put it any better than this. Thanks for this post, it explains what I had in mind better than my own post. Thank you!

@Aoktar, extremely excited to hear that! Awesome stuff :)
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

Very nice idea :D
:::::::::::::::::
pxlntwrk.net
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

First visual from the fresh implementation for new interface
Attachments
a1.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
jayroth
Licensed Customer
Posts: 393
Joined: Fri May 28, 2010 7:29 pm
Location: Orange County, CA, USA
Contact:

Oooh, I like it!
CaseLabs Mercury S8 / ASUS Z10PE-D8 WS / Crucial 64GB 2133 DDR4 / 2 XEON E5-2687W v3 3.1 GHz / EVGA 1600 P2 / 2 EVGA RTX 2080Ti FTW3 Hybrid/ Cinema 4D

Is it fast? Oh, yeah!
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Maxon Cinema 4D”