[Maya-Python] finding plane normal to a vector

2016-11-08 Thread sam
Hello, 

i was wondering if there was a quick way of finding the equation of a plane 
normal to a vector in maya

say the vector is (3,5,1) and passing through point (2,4,5)

i was wondering if there was maybe a math command that could make this easier


thanks, 
Sam

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5ad718cc-aaee-419f-a1c0-8fd2fbc74ae0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Re: finding plane normal to a vector

2016-11-08 Thread Robert White
http://mathonline.wikidot.com/point-normal-form-of-a-plane

Should just need the normal and a point.

On Tuesday, November 8, 2016 at 3:19:14 PM UTC-6, s...@weacceptyou.com 
wrote:
>
> Hello, 
>
> i was wondering if there was a quick way of finding the equation of a 
> plane normal to a vector in maya 
>
> say the vector is (3,5,1) and passing through point (2,4,5) 
>
> i was wondering if there was maybe a math command that could make this 
> easier 
>
>
> thanks, 
> Sam

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5036f947-9e19-447f-bca0-9ae3196ea07e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Exclude QFileSystemModel.setNameFilters

2016-11-08 Thread Marcus Ottosson
Great example, Justin.

I was about to post this, which is a more complex example.

   - Implementation
   

   - Use
   


>>> proxy = ProxyModel(original_model)>>> proxy.add_exclusion("hasCompatible", 
>>> False)

Where hasCompatible is a “role” and False is the value of this role used to
determine whether or not to exclude it.

It also does inclusion, as in, only matching items are included. Combined
they enable excluding within a subset of included items.

>>> proxy.add_inclusion("itemType", "plugin")

It’s used like this.

*Include*

*Exclude*

Hope it helps!
​

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCtP6m3wvTxKU3KST0Wjxwz5s-S979a78N1qY3t-qjDbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Re: Exclude QFileSystemModel.setNameFilters

2016-11-08 Thread Ruchit Bhatt





thnx for reply, will chck your code and here is snapshot of UI. On click to 
export button all files in treeview will be pack in *.tar file.

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/547efa98-9b4e-44bf-9f5c-488acfe974a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.