View Full Version : object names
vincenzol 03-16-2008, 12:34 PM Hi all. a quick question:
is it possible and, if yes, how, to connect an object name to a string attribute?
i mean something that if you change the name, the string will be updated too, just like any other type of connection...
i need something like connectControl
thnx
Vincenzo
|
|
ashishdantu
03-17-2008, 01:48 AM
hi vincenzol,
yes you can do it.
make 2 cubes - pCube1 n pCube2
and add attribute "concObj" (string) to pCube2 using :
addAttr -ln "concObj" -dt "string" pCube2;
setAttr -e-keyable true pCube2.concObj;
and then connect the pCube1's message attribute to this new attribute on the pCube2 using :
connectAttr -f pCube1.message pCube2.concObj;
this makes an attribute connection and now if you use :
listConnections pCube2.concObj; >> should give you the name of the first object even though the name is changed !
hope this helps...
CGTalk Moderation
03-17-2008, 01:48 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.