help with HSCRIPT

   1887   1   1
User Avatar
Member
20 posts
Joined: 9月 2010
Offline
{
# X is the gene number
# panel returns the number in the gene slider in GENOTYPE node

X = prim(“../each1”, 0, “primno”, 0);

panel = ch(“../../GENOTYPE/gene_`X`”);

return panel;
}

this code gives me an error in syntax in houdini.

the problem is with gene_X…is there a way to refer the value of X i get in the prev. line in the next line aling with a parameter name?? for example the value of X keeps changing from 1 to 500 and each time the it refers to the gene_X. I have attached the file

is there another way of writing this? Pls Help

Attachments:
dev.hipnc (218.5 KB)

Cheers
ViSiKa
User Avatar
Member
8599 posts
Joined: 7月 2007
Offline
have you tried this?


panel = ch(“../../GENOTYPE/gene_”+X);



but why not just write
ch(“../../GENOTYPE/gene_” +$PRIMNO)
instead of inline function?

it will not show you correct value in the parameter, just 0 but panelno attribute will have correct value
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links