Page 1 of 1

Possible to id which row in a shading layer is highlighted?

Unread postPosted: Tue Jun 12, 2018 10:30 pm
by bvz2000
We are trying to integrate our Katana shading pipeline with Clarisse. To do that, we would like to "attach" an external file to the shading_variables field of a shading_layer.

My thinking is that the user would highlight a row in a shading layer and then run a script. This script would ask for a file path from the user and then put the following into the shading_variables field:

Code: Select all
texAssign = "/path/to/file.xml"


Later, another script would read this value and expand it to something like:

Code: Select all
texAssign = "/path/to/file.xml"
diffCol = "/path/to/diffuse.png"
specCol = "/path/to/spec.png"



Since a shading layer can have more than one row in it, it would be helpful to be able to identify which row the user has highlighted when they click the button that runs the first script.

Is this possible?

Re: Possible to id which row in a shading layer is highlight

Unread postPosted: Wed Jun 13, 2018 2:41 pm
by bvaldes
Hi,

This is unfortunately not possible because we do not have access to the UI in python. Moreover, there is no highlighted behavior, only selected.

Sorry for the inconvenience, regards.

Re: Possible to id which row in a shading layer is highlight

Unread postPosted: Wed Jun 13, 2018 6:17 pm
by bvz2000
I though that might be the case. Thanks anyway.