Isotropix Forums

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

Clarisse Scripting related topics

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

Unread postby bvz2000 » Tue Jun 12, 2018 10:30 pm

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?
bvz2000
 
Posts: 393
Joined: Thu Nov 13, 2014 6:05 pm

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

Unread postby bvaldes » Wed Jun 13, 2018 2:41 pm

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.
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 275
Joined: Mon Sep 26, 2016 10:44 am

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

Unread postby bvz2000 » Wed Jun 13, 2018 6:17 pm

I though that might be the case. Thanks anyway.
bvz2000
 
Posts: 393
Joined: Thu Nov 13, 2014 6:05 pm


Return to Scripting