Getting an Edge angle?

 10 October 2012 H2o-KiD Veteran portfolio Kok Gin Yih - Cheras, Malaysia Getting an Edge angle? Is there any simple way to do this in mel? share quote
 10 October 2012 NaughtyNathan HighEnd3D deserter   Naughty Nathan Technical Artist Sony SCEE Liverpool Manchester, United Kingdom an edge does not really have an "angle", so your question is slightly ambiguous. do you mean the angle between it's two faces? what if it is an open edge and has only one face?, or do you mean the angle between it and another edge? or from the world axis? Whatever it is you want will undoubtably be gettable with MEL but you'll need to be a bit clearer about what you mean here so you can get a relevant answer. Last edited by NaughtyNathan : 10 October 2012 at 11:46 AM. share quote
 10 October 2012 H2o-KiD Veteran portfolio Kok Gin Yih - Cheras, Malaysia Sorry Nathan for not being clearer. So here's the deal, I'd actually wanted to query an edge's smoothing angle (0 for hard, 180 for soft), then proceed with polySoftEdge (hard/soft) accordingly. Querying the "angle" flag from polySoftEdge don't seem like working. But then, I'd got a working method from somewhere else, but is rather slow imo, the polySelectConstraint command requires selection. ``````ConvertSelectionToEdges; string \$selection[] = `ls -selection`; string \$softEdges[] = {}; string \$hardEdges[] = {}; \$x = 0; \$z = 0; for (\$each in \$selection) { select -replace \$each; polySelectConstraint -mode 2 -type 0x8000 -smoothness 1; if ( size( `ls -selection` ) > 0 ) { \$softEdges[\$x] = \$each; \$x += 1; } else { \$hardEdges[\$z] = \$each; \$z += 1; } } if ( size( \$softEdges ) > 0 ) { select -replace \$softEdges; polySoftEdge -angle 180; } if ( size( \$hardEdges ) > 0 ) { select -replace \$hardEdges; polySoftEdge -angle 0; } polySelectConstraint -disable; select -replace \$selection;`````` share quote
 10 October 2012 CGTalk Moderation Expert 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. share quote

 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 CGSociety Society of Digital Artists www.cgsociety.org Powered by vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.
Forum Jump
 Please select one User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home -------------------- Gallery     Latest Entries     Featured 2D     Featured 3D     CG Awards     Community Awards Main     News     General Discussion     Off Topic     Recruitment         Temp Job Board Challenges     Rival Crimson X Chaos     Education     Demo Reel     Portfolio Review GROUPS WIP ADVICE     Pro Select     Art Direction and Interviews     New 2D/3D Sketchbooks 2018     WIP 2D/3D & Animation         WIP/Critique: 3D         WIP/Critique: 2D             Speedpaints & Sketchbooks         WIP/Critique: Animation     Partners and Groups         Kitbash 3D Thunderdome         Collaborative Projects Autodesk     Autodesk Maya         Maya Dynamics         Maya Rendering         Maya Character Setup         Maya Programming     Autodesk Miscellaneous         Autodesk MotionBuilder         Autodesk Mudbox         Autodesk Softimage             XSI: Programming             ICE: Interactive Creative Environment     Autodesk 3ds max         3dsMax Tutorials & Tips         3dsMax Resources         3dsMax SDK and MaxScript         Plugins & Add-ons         Particle Flow     Mudbox Featured Gallery ZBrush     Featured Zbrush Gallery     Pixologic ZBrush     Keyshot     Marvelous Designer Texturing     Allegorithmic Substance         Substance Designer         Substance Painter         Substance Featured Gallery     Texturing XYZ     Mari     Marmoset Toolbag Software     Maxon Cinema 4D         Cinema 4D Resources     Side Effects Houdini     Compositing Software         The Foundry Nuke         Adobe After Effects         Autodesk Effects and Compositing         Eyeon Software Digital Fusion     Additional Software         Lightwave 3D             LW Resources             LW Tutorials         The Foundry Modo             The Foundry Time Travel Challenge         E-on Software Vue         Photoshop / Painter         Blender         3DCoat Techniques     Art Techniques and Theories     Digital Matte Painting         Digital Matte Painting Mini-Challenge     Modeling         Modeling Challenge             Member Model Collection     Texturing and Surfacing     Character Rigging     Animation     Lighting and Shaders         Lighting Challenges     Compositing and Editing     Anatomy and Figurative Art         SPOTLIGHT: Best of the Artistic Anatomy and Figurative Art Forum         Tutorials and Workshops         Personal Anatomy & Sketchbook Threads         References, Resources, and Supplies Technical     VR/AR     Master Virtual Reality with BrioVR     Workstation Builds     Game Engine     Graphics Programming     Technical and Hardware CGS Labs     Sketchbooks     Hardcore Crit     Discussions and Meet Ups
Miscellaneous

All times are GMT. The time now is 04:55 PM.