( Maya scripting question ): Create a picking session similar to MOTOR PPG

2015-06-22 Thread Nicolas Esposito
Hi all, I'm trying to create a simple UI similar to the one in MOTOR in Softimage. What I'm doing is a simple matching in position/orientation between two characters, in order to transfer the animations between them so that later I can bake the keyframes on the animation itself and export it. I

Re: ( Maya scripting question ): Create a picking session similar to MOTOR PPG

2015-06-22 Thread Luc-Eric Rousseau
It's a bit trickier. The command is scriptCtx, which creates a tool based on the selection tool. If you run any of the examples, you'll notice that nothing happens. This is because the command defines a tool and you need to switch to that tool, for example setToolTo attachTool

Scripting question

2013-10-09 Thread Szabolcs Matefy
Hey folks Anybody have idea how can I export envelope preset from script without recycling all clusters looking for the envelop cluster? Cheers Szabolcs ___ This message contains confidential information and is intended only for the individual named. If you are not the named addressee you

Re: Scripting question

2013-10-09 Thread Peter Agg
I just used some try/except filth: for env in obj.Envelopes: try: map = env.InputPorts(6).Target2 except: LogMessage(Could not find Envelope Map on %s % obj.FullName, constants.siError) continue path = _buildPath(obj)

RE: Scripting question

2012-10-24 Thread Szabolcs Matefy
9:40 AM To: softimage@listproc.autodesk.com Subject: Re: Scripting question Hi, That's the Center position, which is not the same as the obj's pivot. obj.posx.value = Center Position in X obj.pposx.value = Pivot Local Position in X (distance from the obj center) btw

Re: Scripting question

2012-10-24 Thread Ciaran Moloney
:* Re: Scripting question ** ** Hi, ** ** That's the Center position, which is not the same as the obj's pivot. ** ** obj.posx.value = Center Position in X obj.pposx.value = Pivot Local Position in X (distance from the obj center) ** ** btw

RE: Scripting question

2012-10-24 Thread Brent McPherson
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ciaran Moloney Sent: 24 October 2012 10:04 To: softimage@listproc.autodesk.com Subject: Re: Scripting question Yeah, it looks like the interactive pivot overrides the pivot parameters of the kinematics property. It lives in its own universe

Re: Scripting question

2012-10-22 Thread Martin
! ** ** *From:* softimage-boun...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] *On Behalf Of *patrick nethercoat *Sent:* Thursday, October 18, 2012 2:22 PM *To:* softimage@listproc.autodesk.com *Subject:* Re: Scripting question ** ** AFAIK pivot position

Re: Scripting question

2012-10-20 Thread julien carmagnac
...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] *On Behalf Of *patrick nethercoat *Sent:* Thursday, October 18, 2012 2:22 PM *To:* softimage@listproc.autodesk.com *Subject:* Re: Scripting question ** ** AFAIK pivot position is transient, only related to a specific

Re: Scripting question

2012-10-20 Thread Simon Anderson
...@listproc.autodesk.com] *On Behalf Of *patrick nethercoat *Sent:* Thursday, October 18, 2012 2:22 PM *To:* softimage@listproc.autodesk.com *Subject:* Re: Scripting question ** ** AFAIK pivot position is transient, only related to a specific transformation. You can set it with scripting

Re: Scripting question

2012-10-20 Thread Simon Anderson
18, 2012 2:22 PM *To:* softimage@listproc.autodesk.com *Subject:* Re: Scripting question ** ** AFAIK pivot position is transient, only related to a specific transformation. You can set it with scripting but it doesn't get stored. On 18 October 2012 13:10, Szabolcs Matefy szabol

Scripting question

2012-10-18 Thread Szabolcs Matefy
Hi I need to get the position of the pivot...is it possible to get it via scripting? Cheers Szabolcs ___ This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or

Re: Scripting question

2012-10-18 Thread patrick nethercoat
AFAIK pivot position is transient, only related to a specific transformation. You can set it with scripting but it doesn't get stored. On 18 October 2012 13:10, Szabolcs Matefy szabol...@crytek.com wrote: Hi ** ** I need to get the position of the pivot…is it possible to get it via

RE: Scripting question

2012-10-18 Thread Szabolcs Matefy
Thanks, that was I afraid of...thanks anyway! From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of patrick nethercoat Sent: Thursday, October 18, 2012 2:22 PM To: softimage@listproc.autodesk.com Subject: Re: Scripting question AFAIK

RE: Quick scripting question about griddata

2012-09-05 Thread Szabolcs Matefy
scripting question about griddata Hi Szabolcs I stuck your code into the OnClicked event for a button, and it worked. (my ppg was a self-installing property with a griddata and a button) On Tue, Sep 4, 2012 at 8:07 AM, Chris Chia chris.c...@autodesk.com wrote: Try setting the size RowCount

Re: Quick scripting question about griddata

2012-09-05 Thread Stephen Blair
** ** Szabolcs ** ** ** ** *From:* softimage-boun...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] *On Behalf Of *Stephen Blair *Sent:* Wednesday, September 05, 2012 12:05 AM *To:* softimage@listproc.autodesk.com *Subject:* Re: Quick scripting question about

Quick scripting question about griddata

2012-09-04 Thread Szabolcs Matefy
Hey there I'd like to store some data in a custom property GridData to save with the scene, but I also want to hide it from the user. How can I access griddata in the custom property's code? Cheers Szabolcs ___ This message contains confidential information and is intended only for

RE: Quick scripting question about griddata

2012-09-04 Thread Szabolcs Matefy
, September 04, 2012 10:16 AM To: softimage@listproc.autodesk.com Subject: Quick scripting question about griddata Hey there I'd like to store some data in a custom property GridData to save with the scene, but I also want to hide it from the user. How can I access griddata in the custom

RE: Quick scripting question about griddata

2012-09-04 Thread Chris Chia
/cus_ppg_GridDataWidget.htm Chris From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Szabolcs Matefy Sent: Tuesday, September 04, 2012 4:44 PM To: softimage@listproc.autodesk.com Subject: RE: Quick scripting question about griddata OK

Re: Quick scripting question about griddata

2012-09-04 Thread Stephen Blair
of Szabolcs Matefy [ szabol...@crytek.com] Sent: Tuesday, September 04, 2012 6:56 PM To: softimage@listproc.autodesk.com Subject: RE: Quick scripting question about griddata The script is to create a selection based upon the polygons relative size (used the sum of the length of bordering

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
Why not just batch the command to simulate stuff and then save in place on all scenes? Hopefully this isn't being done in a GUI client :)

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 08:11 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question Why not just batch the command to simulate stuff

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
of Raffaele Fragapane [ raffsxsil...@googlemail.com] *Sent:* 23 August 2012 08:11 *To:* softimage@listproc.autodesk.com *Subject:* Re: Checking if simulation is done for current frame | beginner scripting question Why not just batch the command to simulate stuff and then save in place on all

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 10:04 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question You used to be able to pass the batch client a script to run and a scene if I remember correctly

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
@listproc.autodesk.com *Subject:* Re: Checking if simulation is done for current frame | beginner scripting question You used to be able to pass the batch client a script to run and a scene if I remember correctly. Put together a two lines script that runs the sim and saves in place, and then run

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
[softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 10:29 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question Yep, it's pretty standard procedure mostly

Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Christian
Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation, then open next scene. But how can I check if the simulation is finished? Thanks, Christian

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Sandy Sutherland
...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.com] on behalf of Christian [softimagel...@gmail.com] Sent: 22 August 2012 20:24 To: list Subject: Checking if simulation is done for current frame | beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Christian
| beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation, then open next scene. But how can I check if the simulation is finished? Thanks

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Vincent Ullmann
Hi a solution i use, wheni have to Cache something by script: i run a ViewPort-Capture. Didnt got my latest CachingScript here, but i could check this tomorow... but what i would do: Some kind of a PseudoCode: - Open Scene - Go to Frame 1 - Apply ICE-Tree in SecondaryShape (Add Node: Cache on

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Alok
: 22 August 2012 20:24 To: list Subject: Checking if simulation is done for current frame | beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Christian
Thanks to all who replied, much appreciated! Got it working with Vincents method. Cheers On 2012-08-22 21:26, Vincent Ullmann wrote: Hi a solution i use, wheni have to Cache something by script: i run a ViewPort-Capture. Didnt got my latest CachingScript here, but i could check this

A good old fashioned scripting question

2012-08-15 Thread Alex Dinnin
Hi everyone, I was wondering if someone might be able to help me. I've got to make about 500 words and sentences as 3D extruded text. I've use the script editor to set this up. However what I want the script to do is either give me a pop up so I can add the text. or look at a .txt file

RE: A good old fashioned scripting question

2012-08-15 Thread Stephen Blair
@listproc.autodesk.com Subject: A good old fashioned scripting question Hi everyone, I was wondering if someone might be able to help me. I've got to make about 500 words and sentences as 3D extruded text. I've use the script editor to set this up. However what I want the script to do is either give me

Re: A good old fashioned scripting question

2012-08-15 Thread Alex Dinnin
...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] On Behalf Of Alex Dinnin Sent: August-15-12 5:01 AM To: softimage@listproc.autodesk.com Subject: A good old fashioned scripting question Hi everyone, I was wondering if someone might be able to help me. I've got to make about