Isotropix Forums

Shading Variables associations linked to an external file?

Shading Variables associations linked to an external file?

Unread postby bvz2000 » Thu Jun 07, 2018 1:10 am

Would it be possible to add the ability to link shading_variable associations to an external file?

For example, right now in a Shading Layer I can add something like the following:

woodMask = "/this/is/the/wood/mask.tx"
goldMask = "/this/is/the/gold/mask.tx"


What I would like to do instead is link the shading_variables field of the shading layer to something like this:
/path/to/shading/variable/declarationFile.txt


and that file would contain the associations listed above.

Basically we generate all of our textures in Mari and have a custom output script that writes the texture assignments to a text file (xml file in our case, but we can modify that). If we could then just link our shading variables to that text file it would automatically do all of our texture assignments for us.

Currently we are writing code to read that file and do the assignments, but that is still a fairly manual process. We have to update our Clarisse scene every time there is a change to the material assignments in Mari, and we have run the script for every entry of every shading layer.
bvz2000
 
Posts: 404
Joined: Thu Nov 13, 2014 6:05 pm

Re: Shading Variables associations linked to an external fil

Unread postby mdkai » Thu Jun 07, 2018 8:12 am

Yes a "read from File" function would be really helpful !
So far that would only work with extra python processing this...
Join us at the Discord https://discord.gg/G5cJj9A
mdkai
 
Posts: 305
Joined: Tue Oct 07, 2014 7:24 pm

Re: Shading Variables associations linked to an external fil

Unread postby gjennings » Thu Jun 07, 2018 1:23 pm

Hi,

this is a great suggestion. It should be possible once we introduce expressions in 4.0.
User avatar
gjennings
 
Posts: 150
Joined: Sun Feb 28, 2016 5:53 am

Re: Shading Variables associations linked to an external fil

Unread postby matthiasBuehler » Fri Jul 06, 2018 3:52 pm

Hi,


so do I understand right that shading variables can currently not be read from alembic attribution?
matthiasBuehler
 
Posts: 58
Joined: Mon Nov 18, 2013 8:20 pm

Re: Shading Variables associations linked to an external fil

Unread postby dboude » Mon Jul 16, 2018 11:34 am

Hi,

Indeed you can read strings in a geometry point cloud but not in a geometry poly mesh. It's a limitation on our side, (the function isn't exposed in Python for meshes...). I added an entry in our database to fix this. (ID#8550)

Sorry for the inconvenience.

Cheers ;)
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1026
Joined: Mon Jul 03, 2017 10:51 am


Return to Feature Requests Archives