Re: [Maya-Python] Re: components in the selected order

2013-02-16 Thread Ted Charlton
I am sure I am late to the party here but with respect to the title of the thread, I wanted to make sure that this flag of cmds.ls got a mention. *orderedSelection*(*os*) *boolean* [image: create] List objects and components that are currently selected in their order of selection. This flag

Re: [Maya-Python] API recommendations to solve colour sampling issue?

2013-02-16 Thread Ted Charlton
Hey Gerard, What are the actual connections in and out from the plusMinusAverage node? Cheers. On Sun, Feb 10, 2013 at 5:34 AM, Gerard v gerard...@gmail.com wrote: Hello. I'm pretty novice still to maya API and I am looking for a solution to an issue I recently came across. Any

[Maya-Python] Re: Folding polygons

2013-02-16 Thread Bradon Webb
I'm working on a problem how to determine if one edge is adjacent to another edge. here is my working code so far. The purpose will be to automatically detect the most logical folding edge to use as a pivot point for the mesh. I made a diagram showing what I'm trying to do. in this example

Re: [Maya-Python] Re: components in the selected order

2013-02-16 Thread Bradon Webb
oh man am I glad you posted this. This makes life so much easier! thanks! -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Maya-Python] Re: Folding polygons

2013-02-16 Thread Bradon Webb
slight breakthrough: I think a better way is to have the user select the edges in order for the fold. I have a bit of code developed to create joints on the center of each selected edge in the order they are selected. (pic attached) http://pastebin.com/D7VhyNZf the only thing missing now is

[Maya-Python] Re: Folding polygons

2013-02-16 Thread Bradon Webb
I think I have a pretty decent solution for the joint orientation, however I notice some flipping of the axis in some instances. my method is to get the xyz coord from the endpoints of the edge and then calculate the rotation value from that. since i only have 2 points, and I need 3 i set the

[Maya-Python] Re: Folding polygons

2013-02-16 Thread Bradon Webb
I think the flipping is due to the point numbers. you can see that the x axis will point in the direction of lowest number to highest number but since maya orders the points there are cases where I would want those axis to flip but I'm not sure what would be a good test to determine if the