YOUR ACCOUNT

Login or Register to post new topics or replies
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
How do I know if a map type property is actually assigned (i.e. connected to another component)?
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
We simplified the input sampling API so you don't have to distinguish between mappedness/connectedness/non-connectedness. You just sample the input with the appropriate sampling funciton.

If it's mapped, you'll get a sample returned by the map component connected to this input. If it's value is supplied by a control component, you'll get this value (processed by the remapper, if used). If it's not connected at all, you'll get the value specified in component properties for this input.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Mmm.. It kinda undermines the purpose of prepare() by adding extra constant processing in the main get_sample. Thats what I'm trying to avoid (Which is also why I was asking for static input types for Value and Color some time ago)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

18 unregistered users.