Hey, I'm exploring using Attribute Wrangle in LOPs. My goal is to implement different logic based on the input Light Type. I'm using this VEX code to determine the light type:
Now, I'm wondering how to access this attribute in the Select Input Parameter of a Switch node. In Attribute Wrangle for LOPs, there isn't a "Run Over" option, so I'm unsure how to retrieve the @type attribute from the Attribute Wrangle node in another node.
@alexwheezy, thanks for your response. Unfortunately, it appears that the solution isn't working for me; it seems like I might be making a mistake somewhere. In the documentation provided [www.sidefx.com], there's this statement:
You can encapsulate VEX code within curly braces { } that evaluates to 1 for a match or 0 for no match. In this example, @primpath matches the path of the current primitive being considered. You can also use @<attr_name> to access attribute values on the current primitive.
I've tried utilizing it within the Switch LOP node, but it doesn't seem to be evaluating as expected.