Jump to content

attribute access in parameters


saca

Recommended Posts

hi,
i have simple wondering with attribute access for parameters input.
here is "dist" attribute from distanceAlongGeo(SOP).

on PolyWire(SOP)/radius, i can access with "@dist".
on Mountain(SOP)/height, i cannot access with "@dist".

by other way, point() expression,
on PolyWire(SOP)/radius, i can access point(opinputpath(".",0),$PT,"dist",0) too.
on Mountain(SOP)/height, i cannot access point(opinputpath(".",0),$PT,"dist",0) neither.

what reason these difference?
thanks.

falloff_distance_v001_002.hip

Edited by saca
Link to comment
Share on other sites

@saca attribute rename Mask(or dist) to "height" than you no need to have @ in parameter in Mountain SOP....

if you open(allow editing mountain  Sop you goona see inside VOP why ...you can use falloff node with Blend function also and rest
float blend = point(0, chs("../attrib"), @ptnum);
@P = lerp(@P, point(1, "P", @ptnum), blend);

Edited by Librarian
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...