Login - Create Account
Bookmark and Share

Mapped/assigned property or constant?

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

Posts: 1346
Filters: 38
How do I know if a map type property is actually assigned (i.e. connected to another component)?
Njyldgarkn sample cache!
  Details E-Mail
Vladimir Golovin
Administrator
Filter Forge, Inc.
Posts: 3108
Filters: 54
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: 1346
Filters: 38
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)
Njyldgarkn sample cache!
  Details E-Mail

Join Our Community!

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

15,513 Registered Users
+10 new last day!

113,398 Posts
+66 new last day!

10,192 Topics
+11 new last day!

Online Users Last 15 minutes:

ddaydreams, 29 unregistered users.

Recent Wiki Edits:

Follow filterforge on Twitter