Impoting Changes name space and kills my expression

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
Old 01 January 2008   #1
Impoting Changes name space and kills my expression

I wrote an expression to govern various aspects of scene a.
The expression calls certain channels by precise name like ball.translateX.

Scene a gets imported into scene b. and the naming space gets changed. Th expression stops working.

Is there a way to have the expression grab the new naming scheme and append it to the relevant parts of the script? If so how? If you know, could you please show an example of mel code. I am stumped.

Thanks as always,

Old 01 January 2008   #2
The name space getting changed is odd, you may want to check your import settings, and make sure you are not using prefixing, and are appending a unique namespace to everything being imported.

I've seen expressions break when importing because of names changing when NOT using namespaces. The only way around it I know of is to make attribute connections between your nodes and query those inside the expression, instead of referencing the objects by name directly. Something like a message attribute would do.
So instead of:


you would have

connections[] = `listConnections expressionNode.messageAttribute`
mySphere = connections[0]

Pretty sloppy.

Old 01 January 2008   #3

Well, I'll give it a try. Sloppy is fine, so long as it works.

Will post back if it works.


Old 01 January 2008   #4
Bummer--sort of

Well, I just tried re-importing it into a new file, the name space changed and yet the expression is functioning fine... so now I am stumped by inconsistency.

If the problem creeps up again I'll continue to try.


Old 01 January 2008   #5
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 02:49 PM.

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