Re: [Maya-Python] python with maya batch

2022-09-28 Thread tomas mikulak
be a lot more readable and maintainable > than what you've got there. > > On Wed, 28 Sept 2022 at 01:19, tomas mikulak > wrote: > >> Hi Marcus, >> I finally got over with it. all those stages, what you have to write, >> because it will be written to bat file a

Re: [Maya-Python] python with maya batch

2022-09-27 Thread tomas mikulak
ata("\\\""SH010_temp"\\\"","\\\""Z:/WEBSTEROVCI/work/E_20/SQ011/layout/publish/websterovci_SQ011_layout_v014.ma"\\\"")"");" thank yo for your time, tomas ut 27. 9. 2022 o 0:08 tomas mikulak napísal(a): > Thanks for ide

Re: [Maya-Python] python with maya batch

2022-09-26 Thread tomas mikulak
e) > print("Fixing it") > > That you could run as such: > > "c:\program files\autodesk\maya2023\bin\mayapy.exe" "d:/fixIt.py" > > > On Mon, 26 Sept 2022 at 19:37, tomas mikulak > wrote: > >> Hi, >> I have a question about runn

[Maya-Python] python with maya batch

2022-09-26 Thread tomas mikulak
Hi, I have a question about running python script on maya file opened with batch mode. So far I was calling mel that ran python, but now I see more simpler solution with python. let's say a want to open a file d:\test.ma and run a python script on it called fixIt.py that has def whatTo(name, fixNam

Re: [Maya-Python] Re: mirror nurbsCurve in Maya

2022-09-26 Thread tomas mikulak
Hi, you can use mine, select good shape curve then not shaped and run script. it will mirror shape to another curve. ne 25. 9. 2022 o 23:19 benjamin ghys napísal(a): > > Hello, > > Your last suggestion should perfectly work to mirror > On Sunday, September 25, 2022 at 9:17:06 PM UTC+2 nzitonda..

Re: [Maya-Python] Shader texture file not found

2021-06-15 Thread tomas mikulak
Hi Anastasia, it is better to create nodes yourself to have more control over it. But then you would have to do some operations maya does automatically. or just find proc that does it. I use this definition to add shader to specific mesh. In my case name of texture and mesh have some conventions.

Re: [Maya-Python] Playblast Python Progress Bar

2021-03-19 Thread tomas mikulak
I don't have time to write it, but I would say you need to write a function for progressbar that wil be driven by event, frame change(not really name of an event), use scriptJob for that and function should give you just animation percentage of current frame and returned value will be set by progre

Re: [Maya-Python] Parent and Unparent in OpenMaya?

2021-03-17 Thread tomas mikulak
t;helper locator", because I am > looking for reduce the time of the loop.. and it have to be made about 30k > times in the loop. For this reason I am trying to use the api instead of > CMDS. :) > > Em quarta-feira, 17 de março de 2021 às 17:25:33 UTC-3, tomas mikulak > escr

Re: [Maya-Python] Parent and Unparent in OpenMaya?

2021-03-17 Thread tomas mikulak
Hi, I am not into API yet, but what if you also parented a locator under A with same position and rotation as B and after unparenting B just set it's transforms according to locator still under A Bad? tomas st 17. 3. 2021 o 21:20 João Victor napísal(a): > Hi guys, could somebody help me in a do

Re: [Maya-Python] Playblast Python Progress Bar

2021-03-17 Thread tomas mikulak
Hi, try to check this link https://vimeo.com/175371070 st 17. 3. 2021 o 20:42 Dhruba Jyoti napísal(a): > I have created a very basic tool that will create a playblast with all the > desired settings, now all I need to do is to attach with a progress bar. > > Can someone help me with how to do i

Re: [Maya-Python] fbx python

2020-02-09 Thread tomas mikulak
t 4:13 AM tomas mikulak > wrote: > > > > Hi Justin, > > I am loosing my nerves on this one. > > I have simple scene with jumping ball, All I need to be able to read > from it is mesh list, scene in out and positions for them in time. > > But I am getting out of

Re: [Maya-Python] fbx python

2020-02-05 Thread tomas mikulak
be great thanks tomas ut 4. 2. 2020 o 15:10 tomas mikulak napísal(a): > Thanks Justin, > yes I have access to those papers, just the way it was written was > confusing, I guess, > I need to create loop over elements and timeline to get transforms. And I > haven't foun

Re: [Maya-Python] fbx python

2020-02-04 Thread tomas mikulak
rying . thanks, tomas ne 2. 2. 2020 o 23:07 Justin Israel napísal(a): > > > On Sun, Feb 2, 2020, 10:26 AM tomas mikulak > wrote: > >> Hi there, >> Could someone help me with fbx sdk syntax, >> I need to read fbx file from cmd script and query scene elements and

[Maya-Python] fbx python

2020-02-02 Thread tomas mikulak
Hi there, Could someone help me with fbx sdk syntax, I need to read fbx file from cmd script and query scene elements and their transforms over scene length. I managed to get list of elements but I don’t understand what is input for EvaluateLocalTranslation(...) FbxNode.EvaluateLocalTranslation(Fbx

Re: [Maya-Python] Fit Range To Another Range

2019-07-24 Thread tomas mikulak
Hi, maya has fit() function https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-72119439-1CDA-4094-BB94-03BECF23DF3A-htm.html tomas On Thu, 25 Jul 2019 at 07:37, Francesco wrote: > Hi everybody! > > I have a quick question on how to modi

[Maya-Python] progress bar

2019-07-18 Thread tomas mikulak
Hi everyone, Is it possible to output let’s say maya exporting alembic to cmd window asprogress bar when you run mayaBatch from cmd. maybe frame count from scene length or anything, thanks tomas -- You received this message because you are subscribed to the Google Groups "Python Programming for

Re: [Maya-Python] Best way to check if current panel is viewport

2019-06-05 Thread tomas mikulak
l(active_panel, q=True, camera = True) mc.setFocus(i) if you have only one viewport in layout it is good solution, don't know about other scenario. tomas st 5. 6. 2019 o 19:48 tomas mikulak napísal(a): > yes, that is true, you might query if panel has some attrs only vieport > could h

Re: [Maya-Python] Best way to check if current panel is viewport

2019-06-05 Thread tomas mikulak
last panel, which could be the Outliner or the Attribute Editor, > the mostly used panels (viewports too of course) and I hit on that shelf > icon command that I did, it will also error out. > As such, I asked this question.. > > > > > On Tuesday, June 4, 2019 at 11:52:00

Re: [Maya-Python] Best way to check if current panel is viewport

2019-06-04 Thread tomas mikulak
I use python line (lower left )to test that code and when it works I know it will once viewport is active. When you use script editor it is used as active panel. tomas st 5. 6. 2019 o 1:06 kiteh napísal(a): > What is the best way to check if the current panel is a viewport type? > i am trying to

Re: [Maya-Python] maya.standalone

2019-05-26 Thread tomas mikulak
omas ne 26. 5. 2019 o 1:42 tomas mikulak napísal(a): > I have some progress, I put variable name and path to one arrgument and it > is tryint to work now, but it starts to complain about path again and I > don't know why it is trying to save to default scenes > > > so 2

Re: [Maya-Python] maya.standalone

2019-05-25 Thread tomas mikulak
could somebody just run my script with any path to prove me I can’t do simple things, thanks On Fri, 24 May 2019 at 08:54, tomas mikulak wrote: > ok, > I changed backslash to forward slash > import maya.cmds as mc > import os > import subprocess > import sys > >

Re: [Maya-Python] maya.standalone

2019-05-23 Thread tomas mikulak
A_SCRIPTS\PYTHON\batchMaya.py > > Note the PYTHONOathMaya.py, that’s what Python was looking for because \b > got converted into O. > > On Fri, 24 May 2019 at 07:22, tomas mikulak > wrote: > >> no error now, before I got error about path don’t exist. I might just >>

Re: [Maya-Python] maya.standalone

2019-05-23 Thread tomas mikulak
s that a > network path? Do you get any errors in your console/shell? > > On Fri, May 24, 2019 at 5:12 PM tomas mikulak > wrote: > >> no still nothing. >> >> here is how I try to run it from maya >> >> >> import maya.cmds as mc >> im

Re: [Maya-Python] maya.standalone

2019-05-23 Thread tomas mikulak
2019 at 00:45, Justin Israel > wrote: > >> >> >> On Fri, May 24, 2019 at 10:26 AM tomas mikulak >> wrote: >> >>> >>> Hi everyone, >>> could somebody help me with running script with argument(path) to save >>> new file maya s

Re: [Maya-Python] maya.standalone

2019-05-23 Thread tomas mikulak
I used subprocess but it didn’t create a file. and it gave me error wrong path, now I see a light there, I put -p “c:\\” as one argument and you separated it, I will give it a try, thanks On Fri, 24 May 2019 at 00:45, Justin Israel wrote: > > > On Fri, May 24, 2019 at 10:26 AM toma

[Maya-Python] maya.standalone

2019-05-23 Thread tomas mikulak
Hi everyone, could somebody help me with running script with argument(path) to save new file maya standalone will create and save it to given location and all that from maya. I wrote simple python script that takes path argument and when I do it manually openning cmd and typing mayapy path\\script.