Jump to content

Keying Variables In Houdini 7


pabush20

Recommended Posts

I have an engine model that I want to animate. The speed of the pistons and valves are controled by a custom variable $RPM. Is there any way I can key this variable to change the speed of the engine during the animation? Or am I stuck with the enging running at one speed throughout?

Houdini 7.

Link to comment
Share on other sites

Umm..what now? I can't find an OTL node.

24824[/snapback]

An OTL is a special type of Subnet node which can be customized to have parameters. Its a deep topic which you should read up on.. they are extremely powerful, especially for projects where you want to do multiple shots with the same resources or multiple artists need to work together.

Are you stuck on Houdini 7? Can you upgrade to 8?

Simpler but less powerful: there are things called "Spare Parameters". You can add custom parameters to any node. Look in the little icons to the right of the node name in a Parameter Pane. You can attach spare parameters to any node. You might want to attach one to a Null Object and channel reference it from whereever you need it.

Cheers,

Jason

Link to comment
Share on other sites

Umm..what now? I can't find an OTL node.

24824[/snapback]

otl is an operator type library.

how about creating a spare channel to your object called "RPM" and just key that?

You can use channel reference to acess the spare channel.

So where you are referencing $RPM. You can change it to point to your spare channel.

Assuming your object is called "myObject" and the spare channel you create is called "RPM":

ch("../myObject/RPM")

Hope this helps,

/Rick

Edit: uhm Jason beat me to it. nevermind my reply ;)

Link to comment
Share on other sites

Note that Spare Parameters are a H8 feature, so in H7 you'll have to use Spare Channels instead (which work in a similar manner, but with a less friendly interface).

To add a spare channel, select the node & select "Operator->Add Spare Channels..." from the network pane menu. Then select 'Scope Channels..." (the item directly below Add Spare Channels) and press Accept. Select the entire spare channel in the graph editor, and type in your expression. Since this process is so convoluted, a lot of users just throw down a dummy node and enter their expression in one of its parms.

Spare Parameters in H8 work in a much more similar manner to regular parameters one you've created them, so they're always preferrable to Spare Channels.

Link to comment
Share on other sites

spare parameters are cool...but they are not portable - they will only live in /that/ hip file...which is why the OTL suggestion is better IMO...you can have an OTL of your engine with all the parameters that you need up at the top level, and you can use the OTL is any session :)

Link to comment
Share on other sites

Yes, Spare Parms are definitely the 'quick hack' for solving small problems or setting up a single node with expressions a little more cleanly. Sometimes it's just not worth it to create a Digital Asset for something small, and that's where Spare Parms step in. In addition to only being local to the hip file you're working on, a newly created Spare Parm also only appears on the actual node you're editing - not all nodes of that type.

Of course, you can get around that by setting up a creation script that adds the spare parms to each new instance (ie, opspare -a spare1 $arg1), but of course node instances won't update when you change the parms like D/A's do.

Link to comment
Share on other sites

Ya..... I like Spare Parameters. They r very quick. But I think more flexibility should be added to them. In the sense, now you can not rename them , can not change thier data type and all. I don't expect them to work like OTL. But I think it is not hard to add these features. Then why not????

--------iamjaideep80

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...