Materials don't work

Announcements, requests and support regarding the MAYA exporter
User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 11:41 pm

I am trying to fix that right now :)

bazuka
Posts: 7
Joined: Wed Nov 15, 2006 10:22 pm

Post by bazuka » Wed Nov 15, 2006 11:49 pm

great new man,

keep the good work, but you need to speed it up a little...

mean you dont have mat editor, obj editor...

if u need any help just call, im not of a programmer but i try to do my best :)

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Wed Nov 15, 2006 11:51 pm

I think I might have fixed it 8)
We are working on the object editor now too :)

Going to test alittle more befor I upload :wink:

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Wed Nov 15, 2006 11:55 pm

bazuka wrote:im also getting the same error here (maya 8 ), and i got it why (stupid exporter) sorry man my politic is if you do something do it right or dont do it at all...

if u dont use default lamber1 from maya you will get error

Error: No object matches name: lightLinker1.incandescence

for every other material, so i dont know how i can use more than one material?!

cheers
Hey, my mother used to say if you can't say anything nice, don't say anything at all. People are working on it for free, giving away for free, plus the render is in the developing and testing process... I am not sure what kind of expectations there should be??

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Thu Nov 16, 2006 12:03 am

Can some one with Maya 8.0 try this fast? :)

http://www.elqx.com/sm/indigo/v0.6beta2/mtiMain.mel
http://www.elqx.com/sm/indigo/v0.6beta2/mtiGen.mel
Save to script folder

(the individual normal smoothing is in there too..)

bazuka
Posts: 7
Joined: Wed Nov 15, 2006 10:22 pm

Post by bazuka » Thu Nov 16, 2006 12:25 am

nop man still not working...

// Error: No object matches name: lightLinker1.incandescence //

bazuka
Posts: 7
Joined: Wed Nov 15, 2006 10:22 pm

Post by bazuka » Thu Nov 16, 2006 12:28 am

ICY wrote:
bazuka wrote:im also getting the same error here (maya 8 ), and i got it why (stupid exporter) sorry man my politic is if you do something do it right or dont do it at all...

if u dont use default lamber1 from maya you will get error

Error: No object matches name: lightLinker1.incandescence

for every other material, so i dont know how i can use more than one material?!

cheers
Hey, my mother used to say if you can't say anything nice, don't say anything at all. People are working on it for free, giving away for free, plus the render is in the developing and testing process... I am not sure what kind of expectations there should be??
well your mother is right, im still nice...

i respect everything that people do here but im pissed coz i cant render a stupid scene with 2 obj, so what should i say?! im standing here like a fool and watching in maya interface whats wrong, is it me or something else...

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Thu Nov 16, 2006 12:38 am

heh.. Sorry.. :?

Try it now then:
http://www.elqx.com/sm/indigo/v0.6beta2/mtiGen.mel


If it doesn't work, could you create a polyCube, run this script and tell me what it prints?

Code: Select all

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[0] );
And this

Code: Select all

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[2] );

bazuka
Posts: 7
Joined: Wed Nov 15, 2006 10:22 pm

Post by bazuka » Thu Nov 16, 2006 12:39 am

sure man hold on a sec. :)

not working still...

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[0] );
lambert1

this is what i got with first one...

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Thu Nov 16, 2006 1:52 am

I don't know if this would help, but this is the script editor:
file -f -new;
// Result: ./untitled //
commandPort -securityWarning -name commandportDefault;
updateRendererUI;
CreatePolygonCube;
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
// Result: pCube1 polyCube1 //
scale -r 15.414724 15.414724 15.414724 ;
scale -r 1 0.0376893 1 ;
scale -r 1.411856 1.411856 1.411856 ;
polyTriangulate -ch 1 pCube1;
// Result: polyTriangulate1 //
shadingNode -asShader lambert;
// Result: lambert2 //
sets -renderable true -noSurfaceShader true -empty -name lambert2SG;
// Result: lambert2SG //
connectAttr -f lambert2.outColor lambert2SG.surfaceShader;
// Result: Connected lambert2.outColor to lambert2SG.surfaceShader //
select -r lambert2 ;
showEditor lambert2;
setAttr "lambert2.color" -type double3 0.234 0.344479 0.5 ;
setAttr "lambert2.color" -type double3 0.2285 0.344974 0.5 ;
setAttr "lambert2.color" -type double3 0.2165 0.345493 0.5 ;
setAttr "lambert2.color" -type double3 0.169 0.347795 0.5 ;
setAttr "lambert2.color" -type double3 0.1045 0.351028 0.5 ;
setAttr "lambert2.color" -type double3 0.0695 0.352697 0.5 ;
setAttr "lambert2.color" -type double3 0.0695 0.352697 0.5 ;
setAttr "lambert2.color" -type double3 0.110644 0.561494 0.796 ;
setAttr "lambert2.color" -type double3 0.110644 0.561494 0.796 ;
setAttr "lambert2.color" -type double3 0.110644 0.561494 0.796 ;
defaultNavigation -source lambert2 -destination |pCube1|pCubeShape1.instObjGroups[0] -connectToExisting;
// Result: Dropped lambert2 onto pCube1 //
select -cl ;
select -r pCube1 ;
pv_performAction "C:/Documents and Settings/Icarriger/My Documents/maya/projects/default/scenes/test.mb" "mayaBinary";
file -f -save -type "mayaBinary";
// Result: C:/Documents and Settings/Icarriger/My Documents/maya/projects/default/scenes/test.mb //
// Result: 1 //
mtiMain;
move -r 0 12.949346 0 ;
select -r pCube1 ;
select -cl ;
onXMLscene "C:/Indigo" "directory";
// Result: 1 //

envset1-physical
lightLinker1
materialInfo1
lightLinker1
renderPartition
lambert2
pCube1
// Error: No object matches name: renderPartition.incandescence //
select -cl ;
select -r pCube1 ;

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Thu Nov 16, 2006 1:55 am

did you use the new script I uploaded?
The ones above?

Download them again, I have fixed some stuff :)

mraittin
Posts: 7
Joined: Tue Oct 10, 2006 3:01 am

Post by mraittin » Thu Nov 16, 2006 2:03 am

if i have material lambert1(default)

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[0] );
->lambert1

AND

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[2] );
->initialMaterialInfo

if i have for example material phong1

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[0] );
->lightLinker1

AND

string $sg[] = `listConnections -t shadingEngine pCubeShape1`;
string $amat[] = `listConnections $sg[0]`;

print ( $amat[2] );
->lightLinker1

User avatar
arneoog
Indigo 100
Posts: 504
Joined: Sun Jun 25, 2006 2:19 am
Contact:

Post by arneoog » Thu Nov 16, 2006 2:06 am

Yes, been doing lots of tests.. It works fine in 6.0, 6.5, 7.0 ... stupid Autodesk :evil:
I have tried to fix it... ..maybe try more tomorrow :)
Or does these work?

http://www.elqx.com/sm/indigo/v0.6beta2/mtiMain.mel
http://www.elqx.com/sm/indigo/v0.6beta2/mtiGen.mel
Save to script folder..

ICY
Posts: 15
Joined: Tue Nov 14, 2006 4:08 am

Post by ICY » Thu Nov 16, 2006 4:40 am

No, still the same error:

envset1-physical
lightLinker1
materialInfo1
lightLinker1
renderPartition
lambert2
pCube1
// Error: No object matches name: renderPartition.incandescence //

User avatar
ThatDude33
Posts: 216
Joined: Wed Jul 05, 2006 1:26 pm
Contact:

Post by ThatDude33 » Thu Nov 16, 2006 9:52 am

oh, well I know of that one ;)

btw- are these errors coming up only on Lambert1?
Matt B. >>Maya To Indigo<<
Image

Post Reply
32 posts

Who is online

Users browsing this forum: No registered users and 16 guests