Jump to content

python-sop and time


Recommended Posts

I create a simple network:

box -> xform -> timeshift

xform has expression: ty = hou.frame()

timeshift expression: frame = $F-20

all works fine.

But if I create analogous python-sop instead of xform,

it will ignore the timeshift-node.

Why this happens?

How to affect python-sop's hou.frame() by timeshift?


geo = hou.pwd().geometry()
f = hou.frame()
for point in geo.points():
    p  = point.position()
    point.setPosition((p[0], p[1] + f, p[2]))

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.

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...