blart

blart

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Tutorial "Houdini First Steps - MO6 - Attributes and Variables" by Ari Danesh Aug. 23, 2016, 10:15 a.m.

Thanks Daryl, it works, and I understand a bit more.

But still, this following doc about attribute create still bothers me:

Local Variable

Name of the local variable that corresponds to the new attribute. If you leave this field blank, the local variable is the name of the attribute in all UPPERCASE.

To access individual components of a multi-component attribute, the user can append to this name:

X, Y, or Z for vector attributes.
1, 2, 3, etc. for float attributes. Note that the numbering starts at 1, not 0.
For example:

Attribute Type Local variables created
abc
Float, size = 1
$ABC = $ABC1
abc
Float, size = 2
$ABC1, $ABC2
abc
Vector
$ABCX, $ABCY, $ABCZ

That's from Houdini 15.5 documentation, so I can't find any reason I can't call my attribute using “$MYCOLOR1” syntax (but nevertheless, I can't).
Is there any explanation to this?

Thanks,
Dian

Tutorial "Houdini First Steps - MO6 - Attributes and Variables" by Ari Danesh Aug. 16, 2016, 7:56 a.m.

Hi folks, I hit a brick wall just after 6 first steps tutorial here

I'm using Houdini 15.5 Apprentice while trying to emulate the tutorial by Ari Danesh in Houdini 12.

In module 6 of the First Steps tutorial, Ari is showing us some examples of how we can read and use attributes and variables. In the third example, Ari is storing color information in a new custom attribute with 3 components and then recalling/reassign it from the next point node using the usual syntax e.g “$ARI1”, “$ARI2” and “$ARI3” to add color.

In my case this doesn't work. If, for example, I call $MYCOLOR1 to add color, my point node wont cook.
I tried using the VEX way to call attribute e.g. “@myColor.2” etc., it works, but no matter what the number after the dot notation is, it only refer to the first component of my newly created custom attribute.

I tried looking at the documentation of the point node and the attribute create node, but I got nothing from there.

So the question(s) is:
If I create an attribute named custColor in attribute create node, what is the syntax to call that attribute in point node?
It also will help a lot if someone could point a direction to informations regarding syntaxes to write these snippets of codes in parameters.

Thanks guys,
Dian