Hi everyone,
I started messing around with Houdini Apprentice a couple of days, and I'm loving it. But I'm having some trouble grasping the whole scripting part.
I have looked at some tutorials, but have yet to find any basic information about how to start experimenting with scripting (I'm guessing I'm talking about Hscript) in Houdini, I've understood and tried some very simple tasks in various parameters (like matching the y position to the $T variable and using stamps in some different ways.) But well, the main question to get me started is:
When I'm putting some code in a parameter of an object (like the rotate Y of a box) there is only a single line of input, how do I .. euhmm.. “link” a larger chunk of code to a single property, or range of properties?
Example:
I have a box, if $T is less than 30 then the box should be placed at 0 2 1 (x y z) and if it is more than 30 it should be placed at 3 1 2.
First of all, writing an if/else statement on a single line can be confusing, and I'm guessing you're not supposed to (if it even works at all), secondly, instead of running this code on all the translate parameters (x, y and z) individually, can I run a chunk of code that calls each parameter separately but from the same line.
I hope I'm making sense to you here.