Jump to content

Get Vector From Point Exp


symek

Recommended Posts

This must be simple but can't find the answer :(

I would like to get vector attrib from other SOP, just to compute vlenght or something similar - but "point expression" retrieves only one of vector value. How to get attrib if it's a vector? I tried to make new float attrib with proper expression using vector as input but this doesn't work either.

thanks for help,

sy

Link to comment
Share on other sites

it's either:

length( point("/obj/mynode", $PT, "v", 0), point("/obj/mynode", $PT, "v", 1), point("/obj/mynode", $PT, "v", 2))

or

length( vector3( point("/obj/mynode", $PT, "v", 0), point("/obj/mynode", $PT, "v", 1), point("/obj/mynode", $PT, "v", 2)))

I forget if length() requires a vector or 3 floats as the argument...

Edited by B.Walters
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...