Jump to content

attribute create


Recommended Posts

how do you use a variable that is created in the attribute create sop?

i have a simple network that I want to use one single value to control in multiple expressions I can see that I have created the variable "mySpeed", but i cant get the syntax correct in the xform sop to read that variable?

http://i245.photobucket.com/albums/gg54/bradonwebb/AttrCreate_network.jpg

Link to comment
Share on other sites

You access variables by prefixing them with the $. $F, $TX, $BBY, etc. In your case you want $mySpeed.

does that actually work? I could not get it to work. what I did get to work was this.

point("../attribcreate1",$PT,"mySpeed",0)

let me know if there is an easier way this sort of makes the expression really long, just to use a custom variable.

in fact I think its better to use in this case to create a custom float field in the xform node itself. that way I can reference it by using ch(parm)

Link to comment
Share on other sites

does that actually work? I could not get it to work. what I did get to work was this.

point("../attribcreate1",$PT,"mySpeed",0)

let me know if there is an easier way this sort of makes the expression really long, just to use a custom variable.

in fact I think its better to use in this case to create a custom float field in the xform node itself. that way I can reference it by using ch(parm)

You are using a transform node. It does not work with point and primitive locals. In the attribute create, set class to Detail.

Edited by mawi
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...