Jump to content

Recommended Posts

Hello,

I'm getting my knickers in a right old twist trying to set a Data Parameter.

Does anyone have any insight on how to go about this?

Also, is it possible to use them to store arbitrary data?

Thanks!

EDIT: Ended up going through HOM which made things pretty straightforward... still curious is there's another way though :)

Edited by friedasparagus
solved

Share this post


Link to post
Share on other sites

Yes you can store arbitrary data, you need to subclass PRM_DataItem, and PRM_DataFactory.  Then you can allocate your DataItem, put it in a PRM_DataItemHandle and set the parm.

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks Tom :)

I will have to go that way after all, storing the geo via HOM is fine in the callback, but querying the stored HOU_Geometry data on every frame is more than likely too expensive for my budget! Unless I do something funky querying the stashed geo via HOM and caching the results. Which is also possible... Back to tinkering

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×