About Breaking Objects Tutorial View next topic
View previous topic

Post new topicReply to topic
Author Message
neko



Joined: 08 Jun 2007
Posts: 2


Location: Milano Italy

PostPosted: Fri Jun 08, 2007 3:04 pm Reply with quoteBack to top

Hi, I'm a newbie about Houdini (normally I use xsi), but it's very intresting and I've started the Breaking Objects Tutorial and bought the dvd of procedural city!

BUT during the tutorial, he's using an expression who I've wrote but not work
I've the last free version of Houdini

The expression is applied to delete node for pick automatically the groups of points from previous partition, the expression is:
'arg(primgrouplist("../partition1")'
and it's not work!

Thanks for help!


View user's profileSend private messageVisit poster's websiteYahoo MessengerICQ Number
david gary



Joined: 15 Nov 2006
Posts: 29



PostPosted: Sun Jun 10, 2007 12:38 pm Reply with quoteBack to top

Hey,

Well, you should watch the tutorial again, the expression is not

'arg(primgrouplist("../partition1")'

but

'arg(primgrouplist("../partition1"),1)'

( this looked like an error of syntax anyway)and in the rest of the tut, 1 is replaced by a varying number which returns the nth group.
arg takes as arguments
1) a list(string) S
and
2) a number N
and returns the Nth element of list S
(here the list of groups returned by primgrouplist
one useful expression often associated with arg is argc which returns the number of elements in the list.

Hope it helps!
Feel free to ask questions here.
-d
View user's profileSend private message
neko



Joined: 08 Jun 2007
Posts: 2


Location: Milano Italy

PostPosted: Mon Jun 11, 2007 9:56 am Reply with quoteBack to top

yes, sorry I have mistaken to write expression, I've it with the 1 after all.

But it's not work again, the final result is:
'arg(primgrouplist("../partition1"),param("primnum",0))'

in any case I've the delete node with an error and it show me nothing in the viewport!

thks! Smile
View user's profileSend private messageVisit poster's websiteYahoo MessengerICQ Number
david gary



Joined: 15 Nov 2006
Posts: 29



PostPosted: Mon Jun 11, 2007 2:14 pm Reply with quoteBack to top

well, without looking at the tut in much detail right now i can already say that the pb probably comes from the param expression which is no longer valid in Houdini. You have to replace it with the stamp expression which takes an additional parameter ( the path of the sop that generates the stamped parameter ) Please take a look at the Houdini help to have more detail on the syntax.


View user's profileSend private message
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic

Card File  Gallery  Forum Archive :: Powered by phpBB © 2001/3 phpBB Group :: Ti2000 by Port-All :: All times are GMT ::
 
 
Create your own free forum | Buy a domain to use with your forum