rurik Posted April 22, 2014 Share Posted April 22, 2014 Hello Super basic question, but I can't seem to figure it out...How do you get a Font SOP to display the attributes of a say, a Box SOP.? So for example if the box had a $V variable generated by a Trace SOP, how could I have the font SOP display that value? Thanks Quote Link to comment Share on other sites More sharing options...
eetu Posted April 22, 2014 Share Posted April 22, 2014 You need to use an expression, like this ee_font_expression.hip 1 Quote Link to comment Share on other sites More sharing options...
rurik Posted April 22, 2014 Author Share Posted April 22, 2014 Thanks! So what would be a good way to access attributes that are not local variables? For example 'v' or 'p' Thanks! Quote Link to comment Share on other sites More sharing options...
freaq Posted April 22, 2014 Share Posted April 22, 2014 best way is to do an attribcreate where you create the attribute in question beforehand and assign a local variable to it. or to do it through a point expressionpoint("../somenode",0,"attribute",0) point(node,pointnr,attribname,attribIndex)you can make the point expression look atht the input of the node it is in. Quote Link to comment Share on other sites More sharing options...
rurik Posted April 22, 2014 Author Share Posted April 22, 2014 Hmm, I tried the first method, where I use an attributecreate and create a $POS local variable that reads the $TX,$TY,$TZ of my object. Then I modified Eetu's expression to ------ This torus is `("../attribcreate1", $POS)` units wide ------- But I'm clearly not using the right syntax in this case right? Thanks! Quote Link to comment Share on other sites More sharing options...
eetu Posted April 22, 2014 Share Posted April 22, 2014 When you use an expression like point() or detail() to query attribute data, you don't need to have or use a local variable. ee_font_expression2.hip 1 Quote Link to comment Share on other sites More sharing options...
rurik Posted April 22, 2014 Author Share Posted April 22, 2014 Amazing, thanks Eetu! 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.