Problem with attrFieldGrp

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  05 May 2003
Problem with attrFieldGrp

I have an attrFieldGrp, and I'm trying to add an -attribute to it. If If I do something like this:

$object = cube1;

attrFieldGrp -attribute ($object + ".translate");

it works fine, but if I pass an arbitrary vector:

vector $vec = <<0, 0, 0>>;

attrFieldGrp -attribute ($vec);

I get an error saying:
"Error: Error while parsing arguments."

-attribute is supposed to take a vector as an argument. Does anyone know why this would be giving me an error?
  05 May 2003
From the Maya docs:

"-at/attribute string [Q][E][C] The name of a unique attribute of type vector."

The address of the attribute you point it to must be of type vector, not the address itself.

  05 May 2003
oops, just re-read what I wrote and it looks confusing. What I meant is the attr specified by the string must be of type vector but the address to the attr must still be in the form of a string, ie: object.t.

  05 May 2003
Ahhh, thanks, it must not have clicked when I read it in the docs. Make sense now.
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:28 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.