Jump to content

Custom Attributes


zglynn

Recommended Posts

Hey All

There has been something that I haven't been able t figure out for quite some time. Whenever I create a custom attribute, and try to use it as a local variable, it doesn't work.

For example I created an attribute called zImpact and when I try t switch between two objects using the expression, if($ZIMPACT == 1, 1, 0) it doesn't work. I have to use the point() to call it in.

Example, if(point("../attribtransfer1", 0, "zImpact", 0) == 1, 1, 0)

My question is why can't I just use $ZIMPACT ?

-Zach

impact.hipnc

Link to comment
Share on other sites

The problem is that your Switch SOP is not processing things on a per point basis. $ZIMPACT is a reference to the current points attribute value for zImpact. The switch doesn't know about any currently iterating points. Your point() expression works because you are specifically saying look at point 0. If you tried using $ZIMPACT in a point sop it works fine since that op is actually iterating points.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...