Jump to content

Question About Attribute


envil

Recommended Posts

Hi Mark! :)

Thank you! but this scene is a simple test for my digital asset, where I need to use a different variables for height attr.

Perhaps, exist another way to solve my problem?.. I know about a variable mapping, but I don`t know how to use it.. I need to see example :unsure:

Link to comment
Share on other sites

Very interested post! Thank you, SYmek!

Buuut... I have a new question :):rolleyes:

In attrcreate node I create atrribute "foo"

and why I can use this attribute in point node, and can`t use its on mountain node? In spreadsheet of both nodes its attribute is displayed..

and

I set expression in point node for red color, and expression don`t working :

point("/obj/grid1/attribcreate1/point1", $PT, "FOO", 0)

is correct expression?

post-3503-1203860546_thumb.jpg

Edited by envil
Link to comment
Share on other sites

Very interested post! Thank you, SYmek!

Stick to tstex version of that fairytale. More complete.

In attrcreate node I create atrribute "foo"

and why I can use this attribute in point node, and can`t use its on mountain node? In spreadsheet of both nodes its attribute is displayed..

I think because this is a VEX based node in fact (see "Edit VEX Function"). While this doesn't explain anything it describes the case. You can't use any local variable with it.

I set expression in point node for red color, and expression don`t working :

point("/obj/grid1/attribcreate1/point1", $PT, "FOO", 0)

is correct expression?

No, it's not. There is no FOO attribute you refer to in your expression.

There is "foo" attribute and $FOO variable ;). Check txtex post again ;)

good luck,

Simon.

EDIT: Note that you can use relative paths inside one network:

point("../attributecreate1", ...)

or even outside network:

point("../../geo2/attribcreate1", ...)

Edited by SYmek
Link to comment
Share on other sites

Thanks for very quick answer!

one more problem remained - point expression function

I create very simple Network, box1->point1.

And in red color create expression on example in help:

_________________________________

// Example from help

---------------------------------------

point("/obj/geo1/facet1", 3, "P", 0)

_________________________________________________________________________________

Returns the X component of point 3 of the facet1 surface node in geo1.

_________________________________________________________________________________

My expr: point("./point1",$PT,"P",0)

I thought that points must be painted in red colour depending on its positions on X coordinate... but its not work %)%)

I`m very confused... :(

Link to comment
Share on other sites

I think I'm getting the same problem here, with a custom vop...

entering any kind of per-point data into a parameter will fail.

You don't need to do it in case of custom VOPs. $NNX is pointless here. If you created in Vops parameter which name is the same as gemetry attribute it will be used instead of any value specifed in UI. You can hide it from UI or read about "isbound" option in paramters VOPs. Geometry attributes over-ride VEX variable (both in SOPs and in Mantra rendering).

Yes, I did that... And is did not work :blush::unsure:

point("../box1", $PT, "P", 0)

dot dot slash box1...

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