Jump to content
Sign in to follow this  

Python, Get normal from current point and apply to instance

Recommended Posts

Hi everybody i'm stuck orienting light copies to the point onto i scatter.

Can anybody tell me what is wrong with this opiece of code?


for pt in scatterGeo.points():         

            euler = pt.findPointAttrib(“N”)
            dir = hou.Vector3((0,1,0)) * hou.hmath.buildRotate(euler)
            instances.parm('rx').setAttributeValue('N ',dir[0] )



I think there are some basic python stuff error in there:-)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this