Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RenderSetup, how to create a connectionOverride

0 REPLIES 0
Reply
Message 1 of 1
cgi_u
318 Views, 0 Replies

RenderSetup, how to create a connectionOverride

cgi_u
Observer
Observer

Hello there, I've been trying to create a connectionOverride via Python, but I got stuck right away.

I have to unlink a shader from a Light.

If I had to do it in MEL that would be two simple lines:

 

connectAttr -force CMAT_0001_ML2:phong1SG.message lightLinker1.ignore[0].objectIgnored;
connectAttr -force LIGHTS:shadowShape.message lightLinker1.ignore[0].lightIgnored;

 

Manually have no problem with that, but programmatically, I got stuck right at the start:

unlink_collection = beauty_RL.createCollection('lightLinker')
unlink_collection .getSelector().staticSelection.set('lightLinker1')
override = unlink_collection.createOverride("override", "connectionOverride")
?
?

I have no idea what the steps are to set up such override on lightLinker, nor I did find any example on such issue.

Any help out there?  Thanks in advance, regards,

 Stefano

 

 

0 Likes

RenderSetup, how to create a connectionOverride

Hello there, I've been trying to create a connectionOverride via Python, but I got stuck right away.

I have to unlink a shader from a Light.

If I had to do it in MEL that would be two simple lines:

 

connectAttr -force CMAT_0001_ML2:phong1SG.message lightLinker1.ignore[0].objectIgnored;
connectAttr -force LIGHTS:shadowShape.message lightLinker1.ignore[0].lightIgnored;

 

Manually have no problem with that, but programmatically, I got stuck right at the start:

unlink_collection = beauty_RL.createCollection('lightLinker')
unlink_collection .getSelector().staticSelection.set('lightLinker1')
override = unlink_collection.createOverride("override", "connectionOverride")
?
?

I have no idea what the steps are to set up such override on lightLinker, nor I did find any example on such issue.

Any help out there?  Thanks in advance, regards,

 Stefano

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report