onlyoneHai

onlyoneHai

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

About use sprintf vex function converts a int to a string. April 22, 2009, 3:13 a.m.

hi all, i use vex sop add a string attribute(neighbourpoints) to default grid, but the result isnt expected, every point attribute have a number 10, like that,
any help?
thanks,


sop
vopsop1()
{
int count = getneighbourcount(ptnum, 0);
string temp = “”;
int test=0;

int i;
for(i=0; i < count; i +=1 )
{
int neighptnum = getneighbour(ptnum, i, 0);
temp+=sprintf(“%d ”,neighptnum);
test+=neighptnum;
}
printf(“%s ”,test);
addattribute(“neighbourpoints”, temp);
}


the “test” variable export is right:
11 13 16 19 22 25 28 31 34 27 31 44 48 …

Python for curve expression March 19, 2009, 7:46 a.m.

Right click Coordinates Parameter first, select expression->toggle expression, then enter the code as follow.


a=' ‘
for (x,y,z) in zip(range(10),range(10),range(10)):
a+=’%f,%f,%f ' %(x,y,z)
return a

How to export multiple different Channels in CHOPS March 15, 2009, 10:32 p.m.

right click,select Export Set Scope,