$PT in "carve" node

   3428   3   1
User Avatar
Member
26 posts
Joined: Aug. 2007
Offline
Hi,

How would I reference point number with global variable $PT in carve node?

It seems to not having the global variable.

Want to run an expression
point(“../vopsop23”, $PT, “growth”, 0)
on FirstU parameter of carve node.

Any suggestions?
User Avatar
Member
30 posts
Joined: Sept. 2010
Offline
If you have to “translate” the point expression it would be something like this:
Give me a component of an attribute of a point of a certain geometry.
In your case is something like “give me component 0 of ”growth" attribute of point ??????? of node vopsop23
Point number is undefined. $PT makes no sense in this case (for carve sop).
What exactly are you trying to achieve?
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Some SOPs don't take local variables. Carve SOP is one of them. There is an existing RFE to have the Carve SOP take local variables.

In the meantime, if you need to process multiple curves, you will have to wrap the Carve SOP inside a ForEach SOP in order to process curves in turn.

These days the ForEach SOP is pretty efficient.
There's at least one school like the old school!
User Avatar
Member
26 posts
Joined: Aug. 2007
Offline
jeff
Some SOPs don't take local variables. Carve SOP is one of them. There is an existing RFE to have the Carve SOP take local variables.

In the meantime, if you need to process multiple curves, you will have to wrap the Carve SOP inside a ForEach SOP in order to process curves in turn.

These days the ForEach SOP is pretty efficient.

Yeah, I ended up using ForEach SOP. Thanks!
  • Quick Links