enderki

enderki

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

hou.hscriptExpression() not take arguments right 2016年6月24日12:06

Hello, I'm Trying to put together a python script and for some reason hou.hscriptExpression() isn't returning the value right.

This what i'm sort of using.

Fed into the argument is 'ch(“/obj/geo2/carve1/valve”)' or 'ch(“valve”)'

def foo(valveIO)
    valveCh = hou.hscriptExpression('\'{value}\'') .format(value=valveIO)
    return valveCh

Testing it in the shell

valveIO = 'ch("/obj/geo2/carve1/valve")'
valveCh = hou.hscriptExpression('\'{value}\'') .format(value=valveIO)

returns on print ch(“/obj/geo2/carve1/valve”) rather then the value in that channel.


btw without the “\'” before {value} i'll get a “inline (1): Syntax error in assignment”

Now if I just run hou.hscriptExpression('ch(“/obj/geo2/carve1/valve”)') it does return the correct int value.

Is this something that can't be do in python or am I just going about this wrong?

(Help) Fixing Imported Curve point order 2016年6月22日13:18

@Konstantin - Thanks this what I wanted. Knew had to be simple.

@Nima - No didn't need it to match. Just be able to have the carve node recognize the imported curve as a whole and not individual segments. Also have the sweep + skin node work correctly.

(Help) Fixing Imported Curve point order 2016年6月21日21:23

Hello Community,

I'm working with some curves from a cad software. Problem is when I load it in the curve, the point order is a mess. I feel there should be easy to fix but I guess the solution is eluding me.

-Sort won't work cus of complexity.
-Prim order is also a mess.

Thanks