Switch float/integer

   189   0   0
User Avatar
Member
3 posts
Joined: 5月 2013
Offline
Hi!
I am trying to create a small vop tool. Its creating a ramp attribute, ideally I want to be able to control from the parameters promoted in the vop node, if the attribute created is a float or an integer.

The bind export has a "Detect type from input" that ideally is what I want.
I connect on a switch a float, and the float converted to integer, and the result of the switch is what it goes in to the bind export.
Doing that, if I activate/deactivate the switch, I can see my attribute going from a float with decimals, to a floor float removing all decimals, but still not an integer.
I understand I can not have 2 types of data inside a switch and the data gets converted to whatever is plug on the first input.
There's an easy way inside vops to switch an output between float/integer, that can be controlled promoting the parameter?

(I would like to keep all this inside vops, to have a concentrated small tool that dont need extra nodes).
Thanks!
  • Quick Links