Isotropix Forums

how to get string property by python

Clarisse Scripting related topics

how to get string property by python

Unread postby Fufu0101 » Tue Dec 10, 2019 3:20 pm

i made a geo which has a string attribute:"E:/sdfj/basecolormap.jpg"(a texture path),how can i link the path to mapfile note.
how can i get the string property by python ?
And i have find that the clarisse can read detail(Houdini detail attribute) attritube(int float int[] string),but can't get the string attribut on primtive and point
Fufu0101
 
Posts: 4
Joined: Wed Oct 23, 2019 2:54 pm

Re: how to get string property by python

Unread postby anemoff » Tue Dec 10, 2019 3:50 pm

Hi,

Alembic string properties cannot be extracted with the Extract Property node.
But you can use Python scripting. Check this other topic: viewtopic.php?p=22298#p22298

Cheers,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 367
Joined: Wed Jan 13, 2016 10:10 am

Re: how to get string property by python

Unread postby Fufu0101 » Wed Dec 11, 2019 3:54 am

Thank you very much!
i have tried the code from that topic,but there’s something error
it shows:
<span class= “posthilit”>property</span>=“”
Fufu0101
 
Posts: 4
Joined: Wed Oct 23, 2019 2:54 pm

Re: how to get string property by python

Unread postby anemoff » Wed Dec 11, 2019 10:07 am

That's a bug in the forum: when you use the forum search it adds HTML tags inside the python code blocks in the result pages.
After doing a search related to scripting, when you find the post that you need, click on the post title link to load the result page without the search result highlighting.

Click on the link I gave you, it shouldn't have any HTML span tags.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 367
Joined: Wed Jan 13, 2016 10:10 am


Return to Scripting
cron