Isotropix Forums

about path_manager

Clarisse Scripting related topics

about path_manager

Unread postby xc278260759 » Fri Aug 03, 2018 5:43 pm

Hello there
Select "raw_path" in "path_manager" and feedback "resolved_path" as the variable value.
Image
select'raw_path'
String[] = ['resolved_path']
thank :)
xc278260759
 
Posts: 24
Joined: Sat Aug 19, 2017 8:57 am

Re: about path_manager

Unread postby dboude » Mon Aug 06, 2018 10:09 am

Hi,

I don't understand your needs...

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

Re: about path_manager

Unread postby mdkai » Mon Aug 06, 2018 6:58 pm

I guess he is asking how to query the resolved path by using a script ...
mdkai
 
Posts: 125
Joined: Tue Oct 07, 2014 8:24 pm

Re: about path_manager

Unread postby bvaldes » Tue Aug 07, 2018 9:56 am

Hello,

You have to use the function get_string() on the attribute that you want to know the resolved filename.

Regards
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 265
Joined: Mon Sep 26, 2016 11:44 am

Re: about path_manager

Unread postby xc278260759 » Fri Aug 24, 2018 10:16 am

dboude wrote:Hi,

I don't understand your needs...

Cheers ;)

Sorry, my statement is a failure! I am rearranging and hope to get your help.
Image

Code: Select all
select = "Path List"
def xxx( select ):
    file_item = {}
    ?????
    file_item.append(?)
    return file_item
file_item = {
    "D:/Desktop/fileTemp/Diffuse.1001.png" : ["project://scene/Diffuse_smap1", "project://scene/Diffuse_smap2", "project://scene/Diffuse_smap"]
}
xc278260759
 
Posts: 24
Joined: Sat Aug 19, 2017 8:57 am

Re: about path_manager

Unread postby bvaldes » Mon Aug 27, 2018 10:21 am

Hi,

The widgets are not accessible in python. You can't get the info you want this way.

There is a way to get all object.filename list but you will have to order them by yourself:

python code

attrs = ix.api.OfAttr.get_path_attrs()

for i in range(attrs.get_count()):
attr = attrs[i]
print attr

You'll have to get the content of the attribute (get_string()) and add it to your dictionary.

Regards
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 265
Joined: Mon Sep 26, 2016 11:44 am


Return to Scripting