thomas.waldinger
thomas.waldinger
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
global var in expression July 24, 2006, 9:32 a.m.
there's a example at:
hdox/houdini/content/commands/guide/hscript_lang.html
this should do what you expected:
string strvar = “${globalvar}”+i;
btw. is there a need to have enumerated global variables?
as you can get the values of each just by entering $VarName in a Parameter.
hdox/houdini/content/commands/guide/hscript_lang.html
this should do what you expected:
string strvar = “${globalvar}”+i;
btw. is there a need to have enumerated global variables?
as you can get the values of each just by entering $VarName in a Parameter.
hscript command to get last prim selection July 23, 2006, 2:48 p.m.
is there a expresion or hscript command that returns the selected Primitives of the previous operater?
similar to what the group-selection pulldown menu does, if you select Primitive Selection.
i would find it usefull to keep the downstream nodes updated, when doing lots of PolyExtrudes,
and later change the division of the source Geometry.
any hints on this ?
similar to what the group-selection pulldown menu does, if you select Primitive Selection.
i would find it usefull to keep the downstream nodes updated, when doing lots of PolyExtrudes,
and later change the division of the source Geometry.
any hints on this ?
hscript in apprenctice July 21, 2006, 7:57 p.m.
in the meantime you could use a script like this.
it's written on the fly, so excuse me if it's not that elegant.
# opaddglobal.cmd
if ($argc > 2) then
shift
set newDir = $arg0
set dirExist = `opexist($newDir)`
if ($dirExist == 1) then
shift
set oldDir = `run(“pwd”)`
cd $newDir
set op = $arg0
shift
while ($arg0 != “”)
opadd $op $arg0
shift
end
cd $oldDir
else echo Dir does not exist
endif
else
echo usage oppaddglobal.cmd
endif
it's written on the fly, so excuse me if it's not that elegant.
# opaddglobal.cmd
if ($argc > 2) then
shift
set newDir = $arg0
set dirExist = `opexist($newDir)`
if ($dirExist == 1) then
shift
set oldDir = `run(“pwd”)`
cd $newDir
set op = $arg0
shift
while ($arg0 != “”)
opadd $op $arg0
shift
end
cd $oldDir
else echo Dir does not exist
endif
else
echo usage oppaddglobal.cmd
endif