Jump to content

Hscript Expressions


Lyonz

Recommended Posts

Hi all,

Im looking for a way to swap between materials based on a color value, however for some reason im getting an error message ?

Any ideas are much appreciated as ive looked through expressions and can only find shopstring relating to the shop network.

if("$CR>0.1,"shopstring(Texture_1, )","shopstring(Texture_2, )"

Cheers

Link to comment
Share on other sites

Hi all,

Im looking for a way to swap between materials based on a color value, however for some reason im getting an error message ?

Any ideas are much appreciated as ive looked through expressions and can only find shopstring relating to the shop network.

if("$CR>0.1,"shopstring(Texture_1, )","shopstring(Texture_2, )"

Cheers

hmm, shoptstring() has nothing to do here I suppose, bollow line setting shop_materialpath primitive attribute should handle it:

`ifs($CR>0.5, "/shop/red", "/shop/blue")`

Edited by SYmek
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...