Jump to content

Parameter Expression by Python


saca

Recommended Posts

hi,

simple python script sample
 

'a_b_c'.split('_')[0]
>'a'

samely, i want to execute python script as parameter value,
example) hip filename is "s001_c001_myScene_v001.001.hip"
 

$HIPNAME.split('_')[0]


but it's retuen same strings, very confuse.
i want get "s001" in this case.
please tell me how to write them?

thanks

2021-03-24_18h46_30.png

Link to comment
Share on other sites

  • 2 months later...

RMB > Expand_String_Value

it seems to get HScript value in keeping python setting.

it's easy, but i do not recommend this way.
because it shows the value but does not show what language using.

Houdini shows color green for active language, and shows purple for other language.
but this switching show black for normal-strings.

2021-06-05_23h19_21.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...