PDA

View Full Version : Xpresso Question


tomglod
08-10-2010, 08:41 PM
Hi guys.....

I have been working on something and I have a simple xpresso problem

How would I do this operation between an output and input node

IF 1 then input equal value
IF greater than 1 then subtract one.

The subtraction is easy ...just a math node .....but I can't for the life of me find a node that will let me check if the value is greater than 1 or not.

I'm sure its simple...

Thanks in advance.

tomglod
08-10-2010, 08:43 PM
Well I must have been blind..... I found the "condition node"..... although I haven't yet implemented it..I'm asumming this is what I was looking for

Please delete.

mayajunky
08-10-2010, 09:14 PM
Well you'd use a compare node, then port the compare's output into the condition node's switch, which can then pass through the equal value if it's false or pass through the subtracted value if it's true.

C.Smith
08-11-2010, 06:22 AM
Personally for "if/then" type stuff I just use a coffee Xpresso node and write a line or two of code to do what I want. I find it quicker and easier than building it with a few nodes.

mayajunky
08-11-2010, 11:23 PM
Personally for "if/then" type stuff I just use a coffee Xpresso node and write a line or two of code to do what I want. I find it quicker and easier than building it with a few nodes.

Might as well start using the Python node eh? :P
But yea I'd suggest the same thing if you were doing any if/then/elseIf type stuff. Starts to get tedious in xpresso setting up those types of logic.

CGTalk Moderation
08-11-2010, 11:23 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.