xerxesdreames

xerxesdreames

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

p.setAttribValue('My Attrib', 'hi') July 8, 2009, 4:57 p.m.

OK I am answering myself.
it seems I can run this function from in a python SOP not other script interfaces. :?

Thanks,

Kash

p.setAttribValue('My Attrib', 'hi') July 8, 2009, 4:12 p.m.

Hi ,

I am trying to do this in a function that I pass the kwargs to it.

hou_node = kwargs
geo = hou_node.geometry()
thepoints = list(geo.points())
for p in thepoints:
p.setAttribValue('My Attrib', ‘hi’)

and I get this :

File “/home/prisms/builder-new/Nightly10.0/dev/hfs/houdini/scripts/python/hou.py”, line 18077, in setAttribValue
return _hou.Point_setAttribValue(*args)
GeometryPermissionError: Geometry is read-only.

How can I override this attribute which it was exist ?

Regards,

Kash

Houdini :SOP Points April 19, 2009, 3:29 p.m.

Hey Steven thank you very much this is one step forward.
OK now Attribute Transfer is using POINT NUMBER to match the 2 Point grroups.
Now I want to match them by 3 other attributes and they scalar values so :
I used Point SOP and match by :
MYATTR1 MYATTR2 MYATTR3
Point SOB didnt Like it on the same node.
I still can match by MYATTR1
and then in custom attribute tab you say :
attibue name : * it does not work.

SO I added the attributes one by one and said :
attibue name : MYATTR1
Scaler Value : $MYATTR12 ( 2 is input 2)

It works but when you 30 custom attributes and they could change at anytime you cant manually set all them up.
Any Suggestions ? Am I doing anything wrong ?

Regards,

Kash