Found 95 posts.
Search results Show results as topic list.
Houdini Lounge » touchdesigner ?
- puma.snyder
- 121 posts
- Offline
Houdini Lounge » Houdini in the big picture
- puma.snyder
- 121 posts
- Offline
Houdini Lounge » Create an (axis independent) 2d arrow in a single add SOP?
- puma.snyder
- 121 posts
- Offline
thanks again. It's a little bit easier, as I just need a line forming the arrow, so only 4 points in total. Good to know its possible, but unfortunately I've no knowledge of trigonometry. Any hints?
Houdini Lounge » Create an (axis independent) 2d arrow in a single add SOP?
- puma.snyder
- 121 posts
- Offline
that's basically what I'm after, but I need to create this in a single add SOP. I'm pretty sure Houdini can do this. Hopefully I'm not wrong. But thanks for this file kuba!
Houdini Lounge » Create an (axis independent) 2d arrow in a single add SOP?
- puma.snyder
- 121 posts
- Offline
thanks peter. Seems like I haven't made myself to clear. Sorry for that.
What I'm looking for is a way to draw that arrow independent of a fixed axis, i.e. I have two points (start and end) which are not aligned to any of the xyz axes, but are at some (usually animated) xy position. For example
pt0 .5 4 0
pt1 -10 1 0
What I can't figure out is how to position the points of the arrow head so that they take the current orientation of the line/arrow into account.
Hope that made it more clear
thanks again
What I'm looking for is a way to draw that arrow independent of a fixed axis, i.e. I have two points (start and end) which are not aligned to any of the xyz axes, but are at some (usually animated) xy position. For example
pt0 .5 4 0
pt1 -10 1 0
What I can't figure out is how to position the points of the arrow head so that they take the current orientation of the line/arrow into account.
Hope that made it more clear
thanks again
Houdini Lounge » Create an (axis independent) 2d arrow in a single add SOP?
- puma.snyder
- 121 posts
- Offline
Hey all,
been a long time since my last visit here. I need to create a 2d arrow in a single add SOP. pt0 and pt1 are the (changing) start/end points of the line, and now I wanna draw an “arrow head” at the start/end points.
I actually wanna do this in Houdini's little brother (touch), so I have no access to python expressions.
Any ideas how to do this
Thanks
Achm
been a long time since my last visit here. I need to create a 2d arrow in a single add SOP. pt0 and pt1 are the (changing) start/end points of the line, and now I wanna draw an “arrow head” at the start/end points.
I actually wanna do this in Houdini's little brother (touch), so I have no access to python expressions.
Any ideas how to do this
Thanks
Achm
Edited by - May 4, 2009 10:41:35
Houdini Lounge » CHOPS bottleneck trim channel by value
- puma.snyder
- 121 posts
- Offline
Have a look here [derivativeinc.com] for an explanation from some old touch designer docs.
Houdini Lounge » CHOPS bottleneck trim channel by value
- puma.snyder
- 121 posts
- Offline
Sounds like a job for the lookup CHOP. Feed your incoming midi stuff into a count CHOP, set it to increase count by time “while on” and reset to zero on “on to off”, enable timeslice mode. Pipe this into a lookup CHOP, and feed your CHOP holding your audio into the other input.
So whenever any midi note is “on”, the count CHOP increases the matching channels by time (as long as the note is on). Then the lookup plays back your non-timesliced audio.
later
Achim
So whenever any midi note is “on”, the count CHOP increases the matching channels by time (as long as the note is on). Then the lookup plays back your non-timesliced audio.
later
Achim
Houdini Lounge » CHOPS bottleneck trim channel by value
- puma.snyder
- 121 posts
- Offline
didn't really understand your first approach but for the second part, try the expression CHOP with something like
if($V==1,$F,0)
Hope this helps
Achim
if($V==1,$F,0)
Hope this helps
Achim
Technical Discussion » CHOPS question (game controller input?)
- puma.snyder
- 121 posts
- Offline
There are a bunch of joystick to midi apps out there, have a look here [createdigitalnoise.com]
And if you have a wiimote, check this [carl.kenner.googlepages.com] early driver version
Or you could use touch designer, there should be a joystick CHOP in there
Cheers
Achim
And if you have a wiimote, check this [carl.kenner.googlepages.com] early driver version
Or you could use touch designer, there should be a joystick CHOP in there
Cheers
Achim
Houdini Lounge » extracting the current time and date - how?
- puma.snyder
- 121 posts
- Offline
It works without any UNIX tools. Basicly date is a cmd application, so you need to call it something like this (I forgot the exact syntax and no Houdini near me):
system(cmd(date))
or
system(cmd date)
Achim
system(cmd(date))
or
system(cmd date)
Achim
Technical Discussion » Linux / Midi
- puma.snyder
- 121 posts
- Offline
Not much help here, but what you could do is write a little application which converts midi data to a protocoll the pipe-in chop understands. I'm sure there are some free MIDI libraries for java out there, so it could be relatively easy.
There is some for documentaion the pipe-in chop somewhere in the Houdini install directory.
There is some for documentaion the pipe-in chop somewhere in the Houdini install directory.
Technical Discussion » opinput() in sourced hscript
- puma.snyder
- 121 posts
- Offline
Technical Discussion » opinput() in sourced hscript
- puma.snyder
- 121 posts
- Offline
Hi,
I have a hscript embedded in a section of my HDA. The script should delete the input node of the HDA
I tried oprm `opinput(“.”,0)` and it didn't work. Any ideas for the correct syntax?
Thanks,
Achim
I have a hscript embedded in a section of my HDA. The script should delete the input node of the HDA
I tried oprm `opinput(“.”,0)` and it didn't work. Any ideas for the correct syntax?
Thanks,
Achim
Technical Discussion » deleting/adding ops in locked asset?
- puma.snyder
- 121 posts
- Offline
Your right, haven't though about that. Makes prefect sense and sounds like it happend to you allready.
Technical Discussion » deleting/adding ops in locked asset?
- puma.snyder
- 121 posts
- Offline
Hey Wolfwood,
Maybe I didnt understand your question correct, but isn't this what the whole
“Allow Auto Take Mode for Locked Assets” is all about?
Maybe I didnt understand your question correct, but isn't this what the whole
“Allow Auto Take Mode for Locked Assets” is all about?
Technical Discussion » deleting/adding ops in locked asset?
- puma.snyder
- 121 posts
- Offline
OK, then I'll have to create the new ops somewhere else and just reference their output into my HDA.
Thanks
Achim
Thanks
Achim
Technical Discussion » deleting/adding ops in locked asset?
- puma.snyder
- 121 posts
- Offline
With Auto Take mode on I can change parameters inside locked assets ,
but how can I delete and add ops via a callback script inside a locked asstet?
Thanks,
Achim
but how can I delete and add ops via a callback script inside a locked asstet?
Thanks,
Achim
Technical Discussion » connecting all points to all other points
- puma.snyder
- 121 posts
- Offline
Technical Discussion » connecting all points to all other points
- puma.snyder
- 121 posts
- Offline
Hi Andrew,
yes, that's basicly what I want, though Dave's solution outputs cleaner Geometry. In your file, if you apply a carve sop you see what I mean. But thanks for your file!
By the way, here's the solution for the interconnection stuff
[code]
# Automatically generated script: Friday September 16, 12:47
\set noalias = 1
set saved_path = `execute(“oppwf”)`
opcf /obj
# Node connect
opadd -n geo connect
oplocate -x 1.7973 -y 2.4 connect
opset -S on connect
opparm connect use_dcolor ( off )
chautoscope connect +tx +ty +tz +rx +ry +rz +sx +sy +sz +px +py +pz +scale
opset -d on -r off -h off -f off -y off -t off -l off -s off -u off -c off -C on -p off -e on -b off -x off connect
opcf connect
# Node grid1
opadd -n grid grid1
oplocate -x -2.61235 -y 5.74556 grid1
opparm grid1 rows ( 2 ) cols ( 2 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off grid1
# Node dissolve1
opadd -n dissolve dissolve1
oplocate -x -2.61235 -y 4.62056 dissolve1
opparm dissolve1 group ( p0-1-3-2-0 ) remunusedpts ( off )
opset -d off -r off -h on -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off dissolve1
# Node add1
opadd -n add add1
oplocate -x -5.11235 -y 5.07056 add1
opparm add1 points ( 3 ) usept0 ( on ) pt0 ( 0 1 0 ) pt1 ( 0 -0.9 0 ) pt2 ( -1.3 0.5 0 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off add1
# Node merge1
opadd -n merge merge1
oplocate -x -3.86235 -y 3.64556 merge1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off merge1
# Node conn
opadd -n copy conn
oplocate -x 6.13765 -y 6.72056 conn
chblockbegin
chadd -t 0 0 conn ncy
chkey -t 0 -v 1 -m 0 -A 0 -F ‘ch(“../main/ncy”)-1-stamp(“../main”, _CY,0)’ conn/ncy
chadd -t 0 0 conn val1
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,0)’ conn/val1
chadd -t 0 0 conn val3
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,2)’ conn/val3
chadd -t 0 0 conn val2
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,1)’ conn/val2
chadd -t 0 0 conn val5
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,1)’ conn/val5
chadd -t 0 0 conn val6
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,2)’ conn/val6
chadd -t 0 0 conn val4
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,0)’ conn/val4
chblockend
opparm conn stdswitcher ( 1 1 1 ) ncy ( ncy ) stamp ( on ) param1 ( x ) val1 ( val1 ) param2 ( y ) val2 ( val2 ) param3 ( z ) val3 ( val3 ) param4 ( x2 ) val4 ( val4 ) param5 ( y2 ) val5 ( val5 ) param6 ( z2 ) val6 ( val6 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off conn
# Node points
opadd -n add points
oplocate -x 6.13765 -y 7.84556 points
chblockbegin
chadd -t 0 0 points pt0x
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, x,0)’ points/pt0x
chadd -t 0 0 points pt0y
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, y,0)’ points/pt0y
chadd -t 0 0 points pt0z
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, z,0)’ points/pt0z
chadd -t 0 0 points pt1x
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, x2,0)’ points/pt1x
chadd -t 0 0 points pt1y
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, y2,0)’ points/pt1y
chadd -t 0 0 points pt1z
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, z2,0)’ points/pt1z
chblockend
opparm points stdswitcher ( 1 1 ) points ( 2 ) switcher ( 1 1 ) usept0 ( on ) pt0 ( pt0x pt0y pt0z ) usept1 ( on ) pt1 ( pt1x pt1y pt1z )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off points
# Node main
opadd -n copy main
oplocate -x 6.13765 -y 5.59556 main
chblockbegin
chadd -t 0 0 main ncy
chkey -t 0 -v 1 -m 0 -A 0 -F ‘npoints(“../null1”)’ main/ncy
chadd -t 0 0 main val1
chkey -t 0 -v 0 -m 0 -A 0 -F ‘$CY’ main/val1
chblockend
opparm main ncy ( ncy ) stamp ( on ) param1 ( _CY ) val1 ( val1 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off main
# Node null1
opadd -n null null1
oplocate -x -1.04985 -y 1.09556 null1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off null1
# Node scatter1
opadd -n scatter scatter1
oplocate -x 1.76265 -y 3.19556 scatter1
opparm scatter1 npts ( 7 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off scatter1
# Node sphere1
opadd -n sphere sphere1
oplocate -x 1.76265 -y 4.32056 sphere1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off sphere1
# Node fuse1
opadd -n fuse fuse1
oplocate -x 6.13765 -y 4.47056 fuse1
opset -d on -r on -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off fuse1
# Node switch1
opadd -n switch switch1
oplocate -x -1.04985 -y 2.22056 switch1
opparm switch1 input ( 1 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C on -p off -e on -b off switch1
oporder -e grid1 dissolve1 add1 merge1 conn points main null1 scatter1 sphere1 fuse1 switch1
opcf ..
opcf /obj
opcf connect
opwire -n grid1 -0 dissolve1
opwire -n add1 -0 merge1
opwire -n dissolve1 -1 merge1
opwire -n points -0 conn
opwire -n conn -0 main
opwire -n switch1 -0 null1
opwire -n sphere1 -0 scatter1
opwire -n main -0 fuse1
opwire -n merge1 -0 switch1
opwire -n scatter1 -1 switch1
opcf ..
opcf $saved_path
yes, that's basicly what I want, though Dave's solution outputs cleaner Geometry. In your file, if you apply a carve sop you see what I mean. But thanks for your file!
By the way, here's the solution for the interconnection stuff
[code]
# Automatically generated script: Friday September 16, 12:47
\set noalias = 1
set saved_path = `execute(“oppwf”)`
opcf /obj
# Node connect
opadd -n geo connect
oplocate -x 1.7973 -y 2.4 connect
opset -S on connect
opparm connect use_dcolor ( off )
chautoscope connect +tx +ty +tz +rx +ry +rz +sx +sy +sz +px +py +pz +scale
opset -d on -r off -h off -f off -y off -t off -l off -s off -u off -c off -C on -p off -e on -b off -x off connect
opcf connect
# Node grid1
opadd -n grid grid1
oplocate -x -2.61235 -y 5.74556 grid1
opparm grid1 rows ( 2 ) cols ( 2 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off grid1
# Node dissolve1
opadd -n dissolve dissolve1
oplocate -x -2.61235 -y 4.62056 dissolve1
opparm dissolve1 group ( p0-1-3-2-0 ) remunusedpts ( off )
opset -d off -r off -h on -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off dissolve1
# Node add1
opadd -n add add1
oplocate -x -5.11235 -y 5.07056 add1
opparm add1 points ( 3 ) usept0 ( on ) pt0 ( 0 1 0 ) pt1 ( 0 -0.9 0 ) pt2 ( -1.3 0.5 0 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off add1
# Node merge1
opadd -n merge merge1
oplocate -x -3.86235 -y 3.64556 merge1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off merge1
# Node conn
opadd -n copy conn
oplocate -x 6.13765 -y 6.72056 conn
chblockbegin
chadd -t 0 0 conn ncy
chkey -t 0 -v 1 -m 0 -A 0 -F ‘ch(“../main/ncy”)-1-stamp(“../main”, _CY,0)’ conn/ncy
chadd -t 0 0 conn val1
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,0)’ conn/val1
chadd -t 0 0 conn val3
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,2)’ conn/val3
chadd -t 0 0 conn val2
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0), “P”,1)’ conn/val2
chadd -t 0 0 conn val5
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,1)’ conn/val5
chadd -t 0 0 conn val6
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,2)’ conn/val6
chadd -t 0 0 conn val4
chkey -t 0 -v 0 -m 0 -A 0 -F ‘point(“../null1”, stamp(“../main”, _CY,0)+$CY+1 ,“P”,0)’ conn/val4
chblockend
opparm conn stdswitcher ( 1 1 1 ) ncy ( ncy ) stamp ( on ) param1 ( x ) val1 ( val1 ) param2 ( y ) val2 ( val2 ) param3 ( z ) val3 ( val3 ) param4 ( x2 ) val4 ( val4 ) param5 ( y2 ) val5 ( val5 ) param6 ( z2 ) val6 ( val6 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off conn
# Node points
opadd -n add points
oplocate -x 6.13765 -y 7.84556 points
chblockbegin
chadd -t 0 0 points pt0x
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, x,0)’ points/pt0x
chadd -t 0 0 points pt0y
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, y,0)’ points/pt0y
chadd -t 0 0 points pt0z
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, z,0)’ points/pt0z
chadd -t 0 0 points pt1x
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, x2,0)’ points/pt1x
chadd -t 0 0 points pt1y
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, y2,0)’ points/pt1y
chadd -t 0 0 points pt1z
chkey -t 0 -v 0 -m 0 -A 0 -F ‘stamp(“../conn”, z2,0)’ points/pt1z
chblockend
opparm points stdswitcher ( 1 1 ) points ( 2 ) switcher ( 1 1 ) usept0 ( on ) pt0 ( pt0x pt0y pt0z ) usept1 ( on ) pt1 ( pt1x pt1y pt1z )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off points
# Node main
opadd -n copy main
oplocate -x 6.13765 -y 5.59556 main
chblockbegin
chadd -t 0 0 main ncy
chkey -t 0 -v 1 -m 0 -A 0 -F ‘npoints(“../null1”)’ main/ncy
chadd -t 0 0 main val1
chkey -t 0 -v 0 -m 0 -A 0 -F ‘$CY’ main/val1
chblockend
opparm main ncy ( ncy ) stamp ( on ) param1 ( _CY ) val1 ( val1 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off main
# Node null1
opadd -n null null1
oplocate -x -1.04985 -y 1.09556 null1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off null1
# Node scatter1
opadd -n scatter scatter1
oplocate -x 1.76265 -y 3.19556 scatter1
opparm scatter1 npts ( 7 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off scatter1
# Node sphere1
opadd -n sphere sphere1
oplocate -x 1.76265 -y 4.32056 sphere1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off sphere1
# Node fuse1
opadd -n fuse fuse1
oplocate -x 6.13765 -y 4.47056 fuse1
opset -d on -r on -h off -f off -y off -t off -l off -s off -u off -c off -C off -p off -e on -b off fuse1
# Node switch1
opadd -n switch switch1
oplocate -x -1.04985 -y 2.22056 switch1
opparm switch1 input ( 1 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off -C on -p off -e on -b off switch1
oporder -e grid1 dissolve1 add1 merge1 conn points main null1 scatter1 sphere1 fuse1 switch1
opcf ..
opcf /obj
opcf connect
opwire -n grid1 -0 dissolve1
opwire -n add1 -0 merge1
opwire -n dissolve1 -1 merge1
opwire -n points -0 conn
opwire -n conn -0 main
opwire -n switch1 -0 null1
opwire -n sphere1 -0 scatter1
opwire -n main -0 fuse1
opwire -n merge1 -0 switch1
opwire -n scatter1 -1 switch1
opcf ..
opcf $saved_path
-
- Quick Links