Emily Brut

Emily Brut

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

how to use switch inputs in expressions Dec. 30, 2013, 12:33 p.m.

Thanks for your reply. I've tried your suggestion using

{
size = 0;
if (ch(“../switch_road_type/input”) == 0)
size = point(“../scatter_on_blocks”,$PT,“ptarea”,1);
else
size=point(“../scatter_on_islands”,$PT,“ptarea”,1);
return size=point(“../scatter_on_islands”,$PT,“ptarea”,1);
}

but it sill gives a syntax error: Unable to evaluate expression (Syntax error - extra tokens detected in expression (../name_of_copy_sop/val1). Do you know why this might be?


Forgive me if i'm missing something obvious too, but with the Null node method, surely i'll have the same problem that depending on which input is selected, it will need to contain different values?

Thanks

how to use switch inputs in expressions Dec. 30, 2013, 6:54 a.m.

Hi, I'm trying to set a size stamp variable in a copy SOP which is dependant on the input of a switch. I've tried

set -g size = 0.0;

if(chs(“../switch_road_type/input”) == 0)
{
size=point(“../scatter_on_blocks”,$PT,“ptarea”,1)
}
else
{
size=point(“../scatter_on_islands”,$PT,“ptarea”,1)
}

return size;

however it gives the error Unable to evaluate expression (Sytax error (…/name_of_copy_sop/val1)).

Any help would be greatly appreciated.

Thanks