Jump to content

Font SOP reading attribute from other SOP


Recommended Posts

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

Link to comment
Share on other sites

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 expression
point("../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.

Link to comment
Share on other sites

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!

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...