Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: MH4288 on May 07, 2014, 01:02:34 PM

Title: Random parameter problem
Post by: MH4288 on May 07, 2014, 01:02:34 PM
Hi,

I tried Random node for the first time and it didnt work. Maybe I done something wrong, but when I used Numeric node, it was ok.

Really easy setup. Object in Corner and Evenly try to random rotate on Z. Export Rand.Rotation 2 Z, turn on Random rotation in properties, attach Numeric node and change value in Properies folder, everything is ok.
But when I attach Random node, nothing happened. And I dont get the "Generate on" property.
Title: Re: Random parameter problem
Post by: Paul Roberts on May 07, 2014, 01:44:42 PM
Hi,

This is probably linked to the evaluation order of the nodes. Certain expressions don't work when linked directly to a segment node. When this is the case you can use a transform node to bypass these restrictions.

(http://lonelymonk.com/forum_images/9dd6e6d6482147f48622866f560036da.jpg)

Hope that helps,

kind regards,

Paul
Title: Re: Random parameter problem
Post by: MH4288 on May 07, 2014, 06:02:28 PM
Oh, ok, thanks.

Maybe would be good to disable this connects, so user cant link two nodes which cant work.
Title: Re: Random parameter problem
Post by: iToo on May 07, 2014, 07:59:15 PM
Yes, it should show a warning message, in the same way when connecting an Arithmetic->Expression.
We forget to do it when Random was implemented. We'll fix it.