Gerome

Gerome

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Get number of polygons/primitives from HDK 8.x Aug. 25, 2008, 10:58 p.m.

Do you want to do it as a standalone cmd? Expression or will it be an OP?
You can have a look at the traverse.C from the HDK samples, to get the nodes, then you can run through every geo, get the gdp and then use the function
gdp->primitives().entries() to get the number of polys of each geo.

HDK - Sop several separated inputs Aug. 25, 2008, 10:47 p.m.

I have nt seen how looks the DOP gravity. But if I understood your question,
you want to connect different geo to your SOP. Let say A and B

You have to add the number of inputs you want, when you declare your OP
void
newSopOperator(OP_OperatorTable *table)
{
table->addOperator(new OP_Operator(“sparticle”,
“Simple Particle”,
SOP_SParticle::myConstructor,
SOP_SParticle::myTemplateList,
1, // Min required sources
2, // Maximum sources
0));
}

then you loop through and you collect the GDP of each input


src = ( GU_Detail *)inputGeo(current_obj, context ))

If it answers your question I go into details.

particle Up Aug. 13, 2008, 10:47 a.m.

The Y (green bit) is the up vector. But are you using the up Vector in POP to adjust the up vector?