Jump to content

Python, Get normal from current point and apply to instance


hindukush

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:-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...