[Sidefx-houdini-list] Running a script tosetvariablesfromaC-shell script

Robert Persons robert at adtechinc.com
Wed Mar 1 12:16:55 EST 2006


It's working great! Thanks for everyone's help! It's one thing I really
like about being part of the Houdini community!

Robert Persons

-------------------------------------
Robert Persons
Adtech Communications Group
952-944-6347
-------------------------------------
mailto:robert at adtechinc.com

-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com
[mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Dante
Allegria
Sent: Wednesday, March 01, 2006 12:44 AM
To: sidefx-houdini-list at sidefx.com
Subject: RE: [Sidefx-houdini-list] Running a script
tosetvariablesfromaC-shell script


> Have you tried using the '-p' option with the set
> command? For example:
>   set -p renw = 360
>   set -p renh = 240
>   set -p renx = 0.9

While that works, it can also be a bit dangerous. :) That aside, I
thought I saw an example in the help somewhere (which I can no longer
seem to find) on how to use "set -p" to do pass by reference by sending
the name of the variable to modify (similar to using upvar in Tcl).

I think it was something along these lines ...

myscript.cmd:
    set -p $arg1 = 5

caller to myscript.cmd:
    myscript.cmd return_value
    echo $return_value

--- "Robert D.M. Smith" <robert.dm.smith at rogers.com> wrote:

> --- Robert Persons <robert at adtechinc.com> wrote:
> <snip>
> > ----------------------------------------------
> > The simplified "bunchofvariables" script is:
> > 
> > # Set resolution of renders to 360 x 240 .9
> > 
> > set renw = 360
> > set renh = 240
> > set renx = .9
> 
> 
> Have you tried using the '-p' option with the set
> command? For example:
>   set -p renw = 360
>   set -p renh = 240
>   set -p renx = 0.9
> 
> Cheers,
>   Rob
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> 


dante


	

	
		
__________________________________________________________ 
Find your next car at http://autos.yahoo.ca
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list






More information about the Sidefx-houdini-list mailing list