breadbox Posted August 24, 2010 Share Posted August 24, 2010 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 Quote Link to comment Share on other sites More sharing options...
graham Posted August 24, 2010 Share Posted August 24, 2010 You access variables by prefixing them with the $. $F, $TX, $BBY, etc. In your case you want $mySpeed. Quote Link to comment Share on other sites More sharing options...
breadbox Posted August 24, 2010 Author Share Posted August 24, 2010 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) Quote Link to comment Share on other sites More sharing options...
mawi Posted August 24, 2010 Share Posted August 24, 2010 (edited) 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 August 24, 2010 by mawi Quote Link to comment Share on other sites More sharing options...
breadbox Posted August 24, 2010 Author Share Posted August 24, 2010 oh how wonderfull! thanks much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.