这篇文章上次修改于 249 天前,可能其部分内容已经发生变化。
日常中,我们总是能遇到奇奇怪怪的houdini非hip工程,如hiplc,hipnc等。这给我们带来很多不便,需要把他们转换为hip工程,方法如下
首先打开该工程,输入以下指令opscript -G -r / > D:/hip.cmd
关闭该工程,创建一个新的工程,输入以下指令cmdread D:/hip.cmd
这样以来,就可以当作被转化为hip工程了
附opscript使用手册
Prints the commands necessary to recreate an operator.
USAGE
opscript [-r] [-m <in_wire> <out_wire> | -g] [-o] [-n] [-P | -p]
[-b] [[-v | -w] | [-c | -d]] [-s] [-G] [-C] [-N] [-S] [-f]
<name_pattern>
OPTIONS
-r
Recursively apply to the entire operator hierarchy. The
command will not output script for internal node creation in
a locked asset, only the top level of the asset.
-m <in_wire> <out_wire>
Print top-level arguments in macro form. The names will have
to be specified when the results script is sourced. This
option creates more general code than -g.
<in_wire> and <out_wire> specify the input and output wire
nodes.
-f
When generating a script, use full paths (rather than
relative paths) when descending to the lower level of the
folder hierarchy, if a directory change is required in such
a script.
-g
Print top-level arguments in general form. The names will
have to be specified when the results script is sourced.
-o
Save outgoing wires as well.
-P
Don't save spare parameters or channels. Also applies to
child nodes.
-p
Don't save spare parameters or channels on top level nodes.
Spare parameters and channels on child nodes will be saved.
-n
Do not output chblockbegin/chblockend commands. Normally the
output encloses all chadd and chkey commands inside
chblockbegin/chblockend commands for efficiency.
-b
(Brief) Do not print values if they are the parameter's
default.
-v
Evaluate channel values, do not print channel information.
-w
Same as the -v option, but only applies to the root node
when recursing with the -r option.
-c
Only output channels (overrides -v).
-d
Same as the -c option, but only applies to the root node
when recursing with the -r option.
-s
Output channel and key times in samples (frames) instead of
seconds.
-G
Save the groups of each node also. Note that you must be
working on a manager or subnet node to use this option,
since only those kinds of nodes can store groups.
-C
Generate a creation script for the operator. The script
generated with this option is suitable as a creation script
(i.e. the script run every time this type of operator is
added). This option works in conjunction with the -v, -b, -c
and -r options.
-N
Script any network boxes that match <name_pattern>, without
automatically scripting their contents.
-S
Same as -N option, but also scripts each specified network
box's contents. Will avoid duplicate scripting of an
operator if both the operator and its network box are
specified by <name_pattern>.
-V
Omit outputting version information.
EXAMPLES
> opscript -r /obj/geo*
> opscript -G /obj > /tmp/objgroups.cmd
> opscript -S light* netbox*
RELATED
* chblockbegin
* chblockend
* opmenu
* opsave
* opwrite