# Multiply VOP input order

## Recommended Posts

Hello,

I think I figured it out whilst making the image!
But I figure I'd ask anyway.

Does the input order of a multiply node determin its output?

In other words, if a float is the first input a float is the output.

##### Share on other sites

Yup, the input data type always determines the output type. The input also sets the allowed data type of the other inputs. As you can see in your image, inserting a integer in the first input reduces the allowed input types to integer(wrong types are indicated by a dotted line). Using a float allows float and integer. Inserting a vector allows vector, float and integer.

Dennis

Edited by DennisSchmidt
• 1

##### Share on other sites

The types are auto-converted, from floats become integers, integers become vectors etc. You can add a Bind Export to see the output values in the Geometry Spreadsheet - plug it in in pre-multiply and post-mulitple to see the effects.

##### Share on other sites

Good way of visualizing and understanding it better. So the dotted line doesn't tell you its wrong, just that it is doing a conversion(?).

##### Share on other sites

Yep - it's a conversion.  The dotted line means you are losing info. i.e. float to int has a dotted line, whilst int to float doesn't You can MMB and also create the nodes that the conversation. see screengrab

An incorrect type produces an red error - i.e. string to number.

##### Share on other sites

Ah nice! Now the dotted line makes sense. Losing info but doing a conversion. And nice tip with the creation of the conversion node.
Thanks!

##### Share on other sites

Excellent information,  thanks guys!

##### Share on other sites

be careful with the order when multiplying vector with float. vector multiplied by float is still a vector. the other way around is a different math-calculation

## Create an account

Register a new account