Dragan Najdenov

draxysd

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

H20 HDA save dialog problem with UNC/drive map paths in Win Jan. 1, 2024, 4:07 p.m.

Hey guys, any news on this one? It is pretty severe and breaks our workflow so much.

Multiple houdini.env files possible? June 28, 2019, 10:45 a.m.

I would like to have an additional houdini.env in the $HSITE and have it applied before or after the $HOUDINI_USER_PREF_DIR/houdini.env

The goal is to have one global env file for setting up shared plugins and one local one for additional per machine settings. Hope I'm making myself clear.

I'm on a Windows system if that has any relevancy here.

ForEach by number and range - it's not working out for me Sept. 18, 2012, 1:52 p.m.

Here is a fixed version of your file. The thing you need to query with the stamp is FORVALUE (by default, you can change it), which is referenced by either explicitly stating FORVALUE or stamp(“..”, chs(“../forstamp”) + “1”, 0). The other values you can find in the each node by default:

stamp(“..”, chs(“../forstamp”) + “2”, 0)
stamp(“..”, chs(“../forstamp”) + “3”, 0)

are for cases where you are iterating through a vector attribute in which case the attribute components are mapped in

chs(“../forstamp”) + “1”
chs(“../forstamp”) + “2”
chs(“../forstamp”) + “3”

(by default FORVALUE1 FORVALUE2 FORVALUE3).

Now, back to your problem, you referenced chs(“../forstamp”) + “3” which doesn't exist since you are iterating through scalar values (numbers).

As for the other question, you can proceuraly get the number of points in the incoming node with the expression:

chs(“../forstamp”) + “1”

since the $NPT is not defined for the foreach sop.

Cheers