![]() To see a list of all viewers, use “viewls -n”. Type = “world”, “particle”, or “texture”, depending on the contents of the pane. Viewers have names with the form “”, where:ĭesk = The name of the desk containing the viewer pane. For example, if you put the following script in the Select script parameter of an object: ![]() To see the value of these variables for a given object, you can use the message command in a selection script. You can use them to modify the behavior of the script. Houdini makes these variables available to the select script. For example, you can create a simple interface where clicking an “on” Null turns makes a group of objects visible, and clicking an “off” Null turns the objects invisible. One very useful trick is to use the opset command to set the properties (such as the display flag) of other objects when you click an object. to go up to the network level in which the selected object lives. Houdini runs the script in the context of the object that was selected. Possible uses for this feature include creating user interfaces (such as “switch” or “button” objects that change things in the scene when you click them) and debugging (using message to pop up information about an object when you select it). It does not run when you select the node in the network editor, or select the object as part of using another tool. Houdini runs this script when you select the object in the viewer with the Select or Pose tools. The value of the parameter is interpreted as HScript, however you can also choose to call an external script file. Set the object’s Select script parameter (on the Misc tab). Houdini lets you run a custom script when the user selects a particular object in the viewer. You can also read input from the user with the read command. So, you can iterate through all the arguments by processing the value of $arg1, then calling shift to move the next argument into $arg1. The shift command removes the first argument and shifts all the remaining arguments down, so $arg1 is now what was $arg2. To do simple parsing of the command line, or to work with a variable number of arguments, you can use the shift command. For example, if the script is called with myscript first second third (three arguments), $argc is 3. $argc is set to the number of arguments passed in to the script. are set to the arguments passed in to the script. $arg0 is set to the name of the script as it was called. To use arguments in the script file, use $argn variables: You can pass arguments to the script when you run it to customize its behavior. HScript does not support setting an “exit status” like a UNIX shell, but you can use a global variable to achieve the same thing. In scripts, you can use the exit statement to exit the script prematurely. In general, you’ll want to save the script file in the script path, for example in $HOME/houdiniX.Y/scripts. Simply create a text file containing the commands you want to run. To adjust the frame rate, change the Frames per Second parameter in the Global Animation Options.You can encapsulate a group of commands in a script file so you can reuse its functionality. It does not refer to how long an individual frame is. Keep in mind that this parameter controls the amount of time within a single frame, that the shutter is open. 5 is appropriate for animated sequences and a good match for real world settings. You can see how the length of the “motion trail” or “blur” changes based on the shutter time. In the above example the sphere is rotating a full 360 degrees over the course of a single frame. A value of 1 on the other hand would mean that the shutter is open for the entire length of the frame. Ī value of 0 for the shutter time would mean that there is no motion blur at all, as the shutter is only “Open” for an instant. The renderer uses this determine motion blur. ![]() On a physical camera, this if often referred to as Shutter Speed. The shutter time refers to the portion of a frame the shutter is actually open. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |