Setting parameters using HSCRIPT in textport

   1365   2   0
User Avatar
Member
36 posts
Joined: 1月 2014
Offline
Hi,

I would like to change parameter settings using the textport.

For example, how could I change the /obj/geo1/box1/sizex to specific value using HSCRIPT?

Thanks!
User Avatar
スタッフ
3455 posts
Joined: 7月 2005
Offline
a nice trick of the Textport is the ‘help’ and ‘exhelp’ commands - using the -k flag

eg:
>> help -k operator
or
>> exhelp -k operator

this will return all the commands that have the string ‘operator’ in their help
by reading through this list you'll likely see a command that relates to what you want to do, in your case you want to change the value of a parameter - so opparm might be useful
so now you can do:
>>help opparm

and you'll see the help for opparm…with some examples of how ti can be used to change the value of a parameter
opparm box1 sizex ( 3 )
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
36 posts
Joined: 1月 2014
Offline
Thanks Michael!

Exactly what I needed
  • Quick Links