martin krol
ambient-whisper
About Me
専門知識
VFX Artist
業界:
Film/TV
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Houdini 16 2017年2月3日22:26
heh didnt realize it was already in this thead haha whoops. It didnt pop up when I scrolled through the thread before I posted for me.
The video looks sooooooo good. The only thing that worries me is the new nodes. I hope theres a snap distance to when you want to connect wires into nodes. I like the bit rectangles from before because it let you be rather loose with connections, unlike apps like world machine where you have to be very precise. Those circles look mighty small.
And.. I also hope that if you make custom otls that you can resize nodes so that if you make a lot of connections into a single node each connection can have an adequate amount of spacing so you can easily label each and you can then easily middle click to get info over them, etc. Right now if i make more than 4 it starts to get very crowded.
I also hope for houdini indie that redshift will be supported. I dont know if it is yet, but the second I hear that it is, I'm buying indie.
The video looks sooooooo good. The only thing that worries me is the new nodes. I hope theres a snap distance to when you want to connect wires into nodes. I like the bit rectangles from before because it let you be rather loose with connections, unlike apps like world machine where you have to be very precise. Those circles look mighty small.
And.. I also hope that if you make custom otls that you can resize nodes so that if you make a lot of connections into a single node each connection can have an adequate amount of spacing so you can easily label each and you can then easily middle click to get info over them, etc. Right now if i make more than 4 it starts to get very crowded.
I also hope for houdini indie that redshift will be supported. I dont know if it is yet, but the second I hear that it is, I'm buying indie.
Houdini 16 2017年2月3日18:51
seen this?
python question 2016年12月14日15:58
Hey guys.
I am trying to start using python to some degree and I thought I would start by using it inside expressions instead of hscript.
So, I read a bunch of the docs, and tried to make an if statement but completely failed.
Here is what I am trying to do.
I have an arch that is made from an open circle. This arch creates a polygon that is then cookied out of a rectangle.
So it creates an archway. At the end of it I have a polyreduce that triangulates the end result.
Where I want to use the if statement is.. if the arch becomes just 2 points, making a line, I want to switch the cookie node off by bypassing it all together and keeping the original rectangle only.
So. the if statement if written in English, would go like:
( inside the switch input )
if circle division == 1 then
make the value of the switch node = 0
else
make the value of the switch node = 1
There is an example of an if statement in the docs, but my main problem is, how do I make a relative channel reference within python.
I tried it also in Hscript and I cant really get the relative references to work in there either.
I use them all the time to grab values from one node and pipe them into another and then put that all within brackets and do some math to it.. but never inside if statements.. Only if statement I have done that works is within the OTL when turning on or off UI elements based on a local variable.
Back to topic. My current Hscript looks like this.
So, where am I going wrong here, and then… how would it look in python.
I'd love to know
Cheers
( EDIT:
works. so now I am wondering about the python version.
I am trying to start using python to some degree and I thought I would start by using it inside expressions instead of hscript.
So, I read a bunch of the docs, and tried to make an if statement but completely failed.
Here is what I am trying to do.
I have an arch that is made from an open circle. This arch creates a polygon that is then cookied out of a rectangle.
So it creates an archway. At the end of it I have a polyreduce that triangulates the end result.
Where I want to use the if statement is.. if the arch becomes just 2 points, making a line, I want to switch the cookie node off by bypassing it all together and keeping the original rectangle only.
So. the if statement if written in English, would go like:
( inside the switch input )
if circle division == 1 then
make the value of the switch node = 0
else
make the value of the switch node = 1
There is an example of an if statement in the docs, but my main problem is, how do I make a relative channel reference within python.
I tried it also in Hscript and I cant really get the relative references to work in there either.
I use them all the time to grab values from one node and pipe them into another and then put that all within brackets and do some math to it.. but never inside if statements.. Only if statement I have done that works is within the OTL when turning on or off UI elements based on a local variable.
Back to topic. My current Hscript looks like this.
if ('ch("../circle1/divs")' == 1 ) then
return 0
else
return 1
endif
So, where am I going wrong here, and then… how would it look in python.
I'd love to know
Cheers
( EDIT:
if (ch("../circle1/divs") == 1,0,1)
works. so now I am wondering about the python version.