Matt Everitt

Matt Everitt

About Me

Connect

LOCATION
New Zealand
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Python and Pipe In Chop Oct. 2, 2015, 7:50 p.m.

Hey,

In the end I used the network function in the PipeIn chop, instead of the file option. This was because I wasn't quite getting my head around the FIFO stuff. Also the network function allows you to send info from another computer. Could be a fun project hooking up multiple computers.

Any way here is the real basic Python I used to test out the connection.
import time
import socket
from struct import pack

def sendReset(conn):
conn.send(pack('cccccccc', esc, nul, esc, nul, esc, nul, esc, nul))

def send(conn, value):
for ch in value:
if ch == esc:
conn.send(ch)
conn.send(ch)

def sendCurrentValues(conn, channelCount, samples):
commandType = 1
conn.send(pack('>Q', commandType))
conn.send(pack('>Q', channelCount))
for s in samples:
send(conn, pack('>d', s))

esc = chr(170)
nul = chr(0)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('', 5204))
s.listen(1)
conn, addr = s.accept()
print ‘connection established’

while True:
sendReset(conn)
channelCount = 3
samples =
sendCurrentValues(conn, channelCount, samples)
time.sleep(0.3)

This just sends three values through.

Here is what came out of this project http://everittcreative.me/gallery/03houdini.html [everittcreative.me]
switched to processing from python, purely for the Kinect libraries. Same strategy of sending the data though.

Translate along local axis in XYZ using expressions. Sept. 3, 2015, 7:32 p.m.

Using the transform node, I am rotating the object using expressions. I am also trying to translate using expressions.
However, the translate values are translating along the global axis not the local axis.
I have set the transform order to Scale Rot Trans.
Cannot use the transform axis SOP as it only transforms 1 axis.
I understand you can get an interactive local axis gimbal.
Is there an option to do this in expressions?

Python and Pipe In Chop May 29, 2014, 5:56 a.m.

Thanks Edward,

Though I had tried that one, but I think I had the same problem as him at school.

Got it working on my home computer though.