Jump to content

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.
 

inputOrder.jpg

Link to comment
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
  • Like 1
Link to comment
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.

Link to comment
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.

VectorToFloat.png

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...