VOP HDA Dynamic output ports

   1929   4   2
User Avatar
Member
161 posts
Joined: May 2015
Offline
Hi everybody

I am making some VOP nodes as HDAs and I am wondering if it is possible to have different input or output ports based on a signature.
As an example I am trying to make a “Get Obj PreCns Xform” node.
I would like to have 2 signatures : “Vector” and “Matrix”
When using Vector, I would like to have 3 outputs of type vector (trans, rot, scale)
when using Matrix, I would like to have only 1 output of type matrix (xform)

I know how to change the types based on the signatures, what I would like is to actually hide ports when not fitting with the selected signature.
Is it possible to have dynamic inputs or outputs like that?

Thanks in advance!
User Avatar
Staff
1448 posts
Joined: July 2005
Offline
Unfortunately, it's not possible. HDAs always have the same number of inputs and outputs. Only their type can change.
User Avatar
Member
161 posts
Joined: May 2015
Offline
Thank you for your answer rafal
User Avatar
Staff
1448 posts
Joined: July 2005
Offline
You're welcome! Just want to add that it is possible to write a VOP like that, but you will need to use C++ and HDK. HDAs don't have any mechanism to specify the dynamic conditions. Also there are some issues to handle, eg, when an output disappears but it was connected, etc.
User Avatar
Member
161 posts
Joined: May 2015
Offline
Ok, thank you! Nice to know there is a way if needed
  • Quick Links