Itoo Software Forum

Author Topic: More then one limit ID per generetor  (Read 457 times)

3dcrgr

  • Full Member
  • ***
  • Posts: 128
    • cgarchitect profile
More then one limit ID per generetor
« on: September 11, 2015, 11:50:55 AM »
The Material ID setting can only be set as one value at a time (Equal/Not/Greater/Less)
Can you make an additional option to set many ID number? Like 1,2,6,7 and then it will ignore 3-5?

I have some ideas for my library and this is the only limitation.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: More then one limit ID per generetor
« Reply #1 on: September 11, 2015, 12:10:02 PM »
Hi,

Thanks for the suggestion, I'll add it to our wishlist. Until then there are a couple of ways you might be able to achieve this. The easiest would be to duplicate the Generator and change the Limits parameters for each material ID you'd like it to support. It's not ideal because it creates a larger graph,  but it would work fine.

Alternatively you could limit the segments instead of the generator using several Conditional operators,  or By exporting their On/Off property and wiring an expression that tests for multiple IDs, For example:

if(XSplineMatID = 1 | XSplineMatID = 2 | XSplineMatID = 6 | XSplineMatID = 7,1,0)

Unfortunately this doesn't work for generators at the moment.

I hope that helps.

Many thanks!

Paul.

Paul Roberts
iToo Software

3dcrgr

  • Full Member
  • ***
  • Posts: 128
    • cgarchitect profile
Re: More then one limit ID per generetor
« Reply #2 on: September 13, 2015, 08:43:49 AM »
Conditional operators helped me out.  :D
Thank you.