PDA

View Full Version : Select An Object's Face By Referring To The Object's Name


gotanidea
06-18-2012, 08:02 AM
I want to select an object's face, by referring to the object's name first.

My code (eg the object's name is "building1"):

string $objName = "building1";

select -tgl $objName.f[720];

But instead, the command line gave me the following error message:

// Error: line 3: No object matches name: .f[720] //

What went wrong? How to fix this?

3Dmonkey
06-18-2012, 08:32 AM
you need this.
select -tgl ($objName + ".f[720]");

gotanidea
06-18-2012, 11:37 AM
you need this.
select -tgl ($objName + ".f[720]");

Perfect. Thank you

CGTalk Moderation
06-18-2012, 11:37 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.