Houdini opscript 帮助文档

来源:互联网 发布:java 异步请求http 编辑:程序博客网 时间:2024/06/05 04:17
opscript
    REPLACED BY
        hou.BaseKeyframe
        hou.NetworkBox
        hou.Node.asCode()
        hou.NodeGroup.asCode()
        hou.Parm


    Prints the commands necessary to recreate an operator.


    USAGES
      # opscript [-r] [-m <in_wire> <out_wire> | -g] [-o] [-n] [-P] [-b]
        [[-v | -w] | [-c | -d]] [-s] [-G] [-C] [-N] [-S] [-f]
        <name_pattern>


    For the operators specified by <name_pattern>, this will echo the
    commands necessary to re-create the operator.


    OPTIONS
        -r
迭代进入整个操作的内部。这个命令不会对使用被锁定的Asset创建的内部节点进行输出。它只会输出最顶部的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.


        -n
            Do not output chblockbegin/chblockend commands. Normally the
            output encloses all chadd and chkey commands inside
            chblockbegin/chblockend commands for efficiency.


        -b
            如果它们的参数值是默认的,不打印它们的值,可以简化显示。


        -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

0 0
原创粉丝点击