SimplyMaya
Community
The SimplyMaya Forums
View all Forums
A place you can ask or answer VFX related questions
Latest forum posts
Safari browser for Simply Maya?
Wireframe Playblaster for Maya - Render Your Wireframes With Ease!
Mr Bean Animation
Boolean>Difference - Problem
specular highlights at UV seam
Rig explodes when translation on splineIK on spine
News and articles
News & Articles
Vfx related news and articles
Random news
VFX breakdown from MPC - A Monster Calls
Texture collaboration system (Coming Soon)
Upload or Download textures
A place to download great textures or share your own with the community
Legacy Resources
Latest uploads to our system
View new Posts
Edit your profile
View threads your subscribed to
User control panel
Training
Maya Training and Tutorials
View all training
View hundreds of hours of Maya training online or via download
Looking for something specific?
Focus on Archviz & Environments
Focus on Organics
Focus on Hard Surface
Focus on Lighting, Rendering & Texturing
Focus on Dynamics, Rigging & Animation
Post Production
Training options on SimplyMaya
Current member status:
Not logged in
Create Account
Pick a streaming payment plan
We offer several different subscription options for our online training
Try streaming for free
Watch up-to three hours of training over a 10 day period for free
Buy training for download
Choose the content you want and buy it outright, downloads don't expire and you can keep them for as long as you'd like
Latest training
Integrating 3D models with photography
Substance Painter 2017
Complex UV Layout in Maya 2018
Training you might like
Introduction to Maya - Modeling Fundamentals Vol 1
Maya 2020 fundamentals - modelling the real world
If you want to ask a SimplyMaya training related question use this forum:
SimplyMaya tutorials
Create Account
Sign in
Username
Password
Sign in
Forgot Password?
SimplyMaya Forums
Welcome to the forum, feel free to ask questions here.
SM Forums
/
Maya Questions
/
Programming
/ Optimal way to assign shaders to faces
Register
FAQ
Calendar
Mark Forums Read
Programming
MEL Scripts, Expressions & Programming Related Topics
Join the conversation. Reply to post
Thread Tools
08-01-2020, 10:33 AM
#
1
agelosc
Registered User
Join Date: Jan 2020
Posts: 1
Optimal way to assign shaders to faces
This is for a transfer shader between different software tool I’m working on. The geometry shape nodes have a multi attribute with a long list of face indices for each shading group. The only way I’ve fount to assign those faces to a shadingGroup node is to run a loop through each face and with the sets command assign each face to a shadingGroup node. While this works fine for light geometries, when the geometry is large and the number of faces long, the script takes too long to finish if at all.
Is there another, faster way to assign faces to a shadingGroup node?
PS. I’ve tried converting the long list of faces to the unflatten format Maya uses (ie .f[1:300] ) but that doesn’t seem to make anything better.
Reply with quote
agelosc
View Public Profile
Find More Posts by agelosc
Reply
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Rotating a group of Faces uniformly
Yesuar
Maya Modeling
3
07-10-2019
02:07 PM
assign hair to faces
mickhah
Maya Basics & Newbie Lounge
1
16-01-2013
05:34 PM
Cut faces tool issue...
LadySekhmet
Maya Basics & Newbie Lounge
3
14-03-2009
04:24 AM
how come i dont have a keep faces planar option?
Chirone
Maya Basics & Newbie Lounge
0
14-01-2008
08:42 AM
Don't know how to scale multiple faces.
Darkware
Maya Modeling
6
30-12-2002
08:00 PM