Re: [Maya-Python] changing path to references witha callback

2017-11-29 Thread f.michal
Yeah, dirmap is better. If only I could remember how I did it last time :) Will use dirmap() from now on, thanks ! W dniu 29.11.2017 o 18:12, Mahendra Gangaiwar pisze: I think better approach here would be make use of "dirmap" comma

Re: [Maya-Python] Rename all objects in list with name of an other lists

2017-02-23 Thread f.michal
smth like this... for i in xrange(len(ShaderNames)):     rename ShaderNames[i]  NewNames[i] W dniu 2017-02-23 o 17:14, denis hoffmann pisze: Hey guys, I want to rename all shaders with names from a list.

Re: [Maya-Python] finding the difference between two coordinates

2016-12-07 Thread f.michal
W dniu 2016-12-07 o 09:58, alessia.bec...@gmail.com pisze: Hi, this maya be a dumb question. I basically have two points in space a(1,2,3) and b(-2,4,7) and i want to find out what values i need to add to the 'a' coordinates to get to the 'b' coordinates. If i subtract then it would give me (

Re: [Maya-Python] Re: textField - invoking callback on each keypress, keeping focus after Enter

2016-08-25 Thread f.michal
Thanks guys ! I kept away from Qt for too long now, partly because complicated setup on c++ side and partly because MEL was enough most time... It's also good time to check Marcus and Fredrik's  Qt.py tool :) so, do you know of any nice maya+qt tutorials/recipes ?

Re: [Maya-Python] how to get an MDagPath in a deformer, starting from the dataBlock ?

2016-08-13 Thread f.michal
Hi I had this problem with my deformer too. I think what we try to do breaks Maya API rule saying that any dependency node can only depend on input attributes and nothing else. What we get inside deform() method is a geometry iterator - not shapeNode, not transform, not even meshData plug ! (m

Re: [Maya-Python] adding text to statusline

2016-03-22 Thread f.michal
One more thing, how to add this at the end of statusline ? I have no experience with Qt and blind fiddiling with parameters does nothing... W dniu 2016-03-22 o 15:05, Marcus Ottosson pisze: This should do it. :) - https://gi

Re: [Maya-Python] adding text to statusline

2016-03-22 Thread f.michal
W dniu 2016-03-22 o 15:05, Marcus Ottosson pisze: This should do it. :) - https://gist.github.com/mottosso/73b6f60de4abcc306ae0 Thank you Marcus !! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from t

Re: [Maya-Python] Setting the default value of a node's string attribute

2015-12-04 Thread f.michal
try this: tAttr = OpenMaya.MFnTypedAttribute() tAttr.create(name, name, OpenMaya.MFnData.kString, OpenMaya.MFnStringData().create(default_value) ) W dniu 2015-12-04 o 14:10, Szabolcs Horvátth pisze: Hi, I'd like to specify the default value of a string attribute of a node generated by a Pyt

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-30 Thread f.michal
W dniu 2015-12-01 o 01:58, Chad Dombrova pisze: Hi Ben, I just thought I'd mention that there are very few situations that I have encountered where you need a maya gui session instead of a batch session (you can even do openGL playblasts from a batch session). Hi Chad I don't want to steal th

Re: [Maya-Python] maya bend deformer algorithm

2015-11-26 Thread f.michal
x (or even approximately) and simply rotate them all along one axis, and if that’s not enough you could also bend-deform or joint deform a regular poly cylinder (or even a plane), and wrap deform your text to that. ​ On 26 November 2015 at 20:16, f.michal <mailto:f.mic...@gmail.com>> wrote:

Re: [Maya-Python] maya bend deformer algorithm

2015-11-26 Thread f.michal
W dniu 2015-11-26 o 21:12, Roy Nieterau pisze: This should get you there: https://github.com/BigRoy/maya-matrix-deformers/blob/master/matrix_deform/nodes/matrixBend.py Note that this is also calculating an actual rotational value along with it which isn't needed if you're doing pure point/verte

Re: [Maya-Python] maya bend deformer algorithm

2015-11-26 Thread f.michal
W dniu 2015-11-26 o 20:31, Rémi Deletrain pisze: You try linearBend deformer before ? I'm not sure what you mean ? -- 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 email

Re: [Maya-Python] Is it possible to freeze .ptns (tweaks) on a mesh using python?

2015-10-05 Thread f.michal
W dniu 2015-10-01 o 00:28, Chad_Fox pisze: Hi all Does anyone know if it's possible to freeze .pnts (tweaks) on a mesh using python? I've been struggling with this for a while with no results. To be clear. I want to remove/freeze/zero these values on meshes that don't have tweak nodes or his

[Maya-Python] Removing tweaks from meshes - pt attribute

2015-10-05 Thread f.michal
Hi Some time ago I was bitten by a nasty bug and it took me a while to pin that down. The issue is that if you: 1. reference in an object that has tweaks in .pt attribute AND output connection from .outMesh 2. apply any deformer to that mesh (in scene that is referencing) 3. reopen that scene

Re: [Maya-Python] Re: Extension Attribute of MPxData

2015-09-14 Thread f.michal
Thanks for letting us know. This is something I might be looking into in near future. W dniu 2015-09-14 o 20:15, Arnon Marcus pisze: Ok, I figured it out: I don't know what about the MEL approach (I didn't like it anyway). But as for the 2 other approaches, the problem was the way I instantia

Re: [Maya-Python] Python in Maya - script for applying a material?

2015-08-14 Thread f.michal
Pardon MEL, but that's what I have now :) global proc mfNewShaderForSL() {     string $sl[]= `ls -sl -l`;     for($o in $sl)     {         string $SG = `sets -renderable true -noSurfaceShader true -empty`;         string $shade

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread f.michal
W dniu 2015-04-17 o 14:33, Marcus Ottosson pisze: I get what you’re after, and I don’t have an answer for you, but this.. playback can be slow in lighting scenes ..can be solve

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread f.michal
have key too. do you want the code apply on keyable attrs or all? On Fri, Apr 17, 2015 at 3:56 AM, f.michal <f.mic...@gmail.com>

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread f.michal
hat have the problem? On Fri, Apr 17, 2015 at 3:13 AM, f.michal <f.mic...@gmail.com> wrote: Thanks ! But static channals are also those who have many keys all with the same values - which is my ca

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread f.michal
Thanks ! But static channals are also those who have many keys all with the same values - which is my case. Bigger picture: I'm trying to determine if camera moves or not in a shot. If it's static there's a potential advantage in render frame range on

Re: [Maya-Python] Get original mesh before any deformer

2015-03-02 Thread f.michal
W dniu 2015-03-02 o 13:18, Miguel González Viñé pisze: Hi all, I'm doing a c++ deformer node and a MPxCommand to create some info inside the deformer. I'm trying to get the MFnMesh of the object before any deformations through a MPlug because as I'm in the MPxCommand class I don't know how

Re: [Maya-Python] mayapy crash on exit when using pymel

2014-10-30 Thread f.michal
W dniu 2014-10-30 18:08, Paul Molodowitch pisze: Just to clarify - this crash isn't caused by pymel - it's caused by the loading of certain "standard" maya plugins (sceneAssembly and xgen being two that I know of). The reason why it happens when you import pymel, as opposed to just maya.standa

Re: [Maya-Python] C++ Programming for Autodesk Maya

2014-10-08 Thread f.michal
W dniu 2014-10-08 16:15, Marcus Ottosson pisze: I certainly wouldn't go as far as to actually rename the group, it takes a long time to build momentum with a name. How about a prefix, such as [C++] to questions involving C++? E.g. "[Maya-Python][C++] My question" +1 -- You received this m

Re: [Maya-Python] C++ Programming for Autodesk Maya

2014-10-08 Thread f.michal
W dniu 2014-10-08 13:38, Jack Straw pisze: This group is a great resource for Python development and basically it would be great to have another for discussing C++ development for Maya. I just wanted to gauge interest before I set it up, I have seen plenty of questions on C++ development on thi

Re: [Maya-Python] nested tabLayout refresh problem

2014-04-09 Thread f.michal
Thanks Justin - that works W dniu 2014-04-09 12:50, Justin Israel pisze: Ok, don't ask me why this this is really needed, but obviously there is some kind of refresh issue with the nested tabs, and if you make it switch tabs and back p

Re: [Maya-Python] reading fileInfo from binary scenes

2013-10-23 Thread f.michal
W dniu 2013-10-23 11:01, Justin Israel pisze: I don't have much experience trying to parse maya binary files, and cgkit doesn't give any indication really of how to handle the groups and chunks beyond it just giving them to you in the callbacks... But a quick google search turned up this mayato

Re: [Maya-Python] doubleArray - creation and setting value

2012-09-12 Thread f.michal
W dniu 2012-09-11 18:31, Justin Israel pisze: Ok...no more coding before getting my first cup of coffee...I pasted the wrong block. Sorry! http://pastebin.com/M2p4FhEu That one has the "not objExists", and an optional worldSpace boolean I will be quiet now :-) thanks ! -- view archives: http

[Maya-Python] doubleArray - creation and setting value

2012-09-11 Thread f.michal
Hello I have a workin MEL code that I need to convert to python. I'm not really sure how would I set values on doubleArray attributes - it's weird already with MEL. So, what would be the translation of following into python : global proc attachPref(string $sh, int $worldSpace) { string $a=

[Maya-Python] mel command to execute render to file

2010-04-27 Thread f.michal
Hello, Is there any mel command that would render a frame to file ? Actually I need to do exactly what normal batch rendering does (render.exe), but from "mayabatch.exe -batch" session. If anybody asks why, I already have a nice tool to run maya in batch, generate rib frames and run 3delight. Th

Re: [Maya-Python] Re: PyMEL 1.0.0 Beta

2010-02-09 Thread f.michal
Hello everybody, I really got interested in this 'launcher' thing, as this is similar to what I've done here. I too have mini py scripts that reads envvars from configuration file, and launches maya. However I was unable to boot maya on a machine, that had maya never installed before. I downloa