Re: AddPointInteriorToPolygon() command args problem

2016-06-25 Thread Matt Lind
What I would ask is what are you trying to do, and why do you think you need 
AddPointInteriorToPolygon() to do it?

When you perform any topology operation that removes an existing 
subcomponent, the remaining subcomponents have to move up a spot in the list 
to fill the void created by the deleted subcomponent as Softimage does not 
allow discontinuous numbering of subcomponents to exist.  However, the 
renumbering will not occur until the construction history is frozen.  As 
long as the topology operator is live, the void will remain because the 
operator still has a hold on the subcomponent's ID for the purpose of 
satisfying undo operations (and other things).  When you freeze the 
construction history (or evaluate the mesh as a static dataset), Softimage 
will flush the topology operators then renumber the subcomponents to make 
list continuous again.  What makes things tricky is when you delete 
subcomponents, then perform additional topology operations to select or 
create subcomponents on the mesh before a freeze is performed because all 
your references to the new subcomponents will be invalid the moment the 
construction history is frozen and subcomponents move up positions in the 
list.  this is probably what you've wrestled with in the past.

It's generally more efficient to draw the mesh in it's desired shape as a 
topology generator than to start with a base mesh and use subtractive 
methods invoking multiple evaluations of the construction history.  Drawing 
the mesh from scratch also has the advantage of being immune to the 
subcomponent renumbering problem as you'll be defining the order of the 
subcomponents with the vertex list and connection order.  That's why I 
suggest using PolygonMesh.Set() as you provide the vertices and connection 
order as a list however you want it configured, and it's done.  You can use 
the same technique using Model.AddPolygonMesh() to create a mesh from 
scratch.

However if you insist on using commands, you can try drawing a mesh with 
pre-existing holes where you intend to modify, then insert new polygons in 
their place rather than delete and replace.  This will behave more nicely in 
that new subcomponents will be appended to the end of the mesh's 
subcomponent list.  When the construction history is frozen, the 
subcomponents will not be renumbered because there are no voids in the list 
to fill.  You can use ConnectNewPolygonToPoint() and AddPointToNewPolygon() 
for this purpose.  Just keep in mind they'll quite a bit slower compared to 
PolygonMesh.Set() or Model.AddPolygonMesh().


Matt




Date: Fri, 24 Jun 2016 07:51:30 +0300
From: Andrew Prostrelov 
Subject: Re: AddPointInteriorToPolygon() command args problem
To: softimage@listproc.autodesk.com

Thank you Matt for detailed answer.

>If the weights are ( 0.05, 0.05, 0.9 ), then vertex 8 should get the most
bias.

Nice to hear, that mean i get the logic right.


> And no, they do not reorder the mesh. PolygonMesh.Set() uses the vertex
index ordering you specify and will only change if you change them yourself.

Are you sure ? I write a plugin that add new edges to mesh via XSI
SplitEdge and then apply Operator that should move this new edges in
Update() callback.
At first i use PolygonMesh.Get() & PolygonMesh.Set() algorithm. But then i
found that after i use PolygonMesh.Set() i have wrong selections on a mesh.
And can't get write
components indices even from previously created clusters. So i change
algorithm to CPointRefArray.GetPositionArray() &
CPointRefArray.PutPositionArray() and have no problems with selections. But
lets temporarily suspend this subject. If in the end of a day there is no
way i can use AddPointInteriorToPolygon(), i provide a code and test
examples to have more constructive dialogue about PolygonMesh.Get() &
PolygonMesh.Set() algorithm. Maybe i lose something again.

So far, if i understand you right, i can't use command
AddPointInteriorToPolygon() with triangles other then 0,1,2 without
additional barycentric corrections?
Maybe you know the algorithm or some kind of a workaround for this
corrections ? If command can calculate this barycentric values then we also
can, i suppose.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://listproc.autodesk.com/pipermail/softimage/attachments/20160624/eeb68f41/attachment.html

--

___
Softimage mailing list
Softimage@listproc.autodesk.com
http://listproc.autodesk.com/mailman/listinfo/softimage


End of Softimage Digest, Vol 91, Issue 45
* 

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.


Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Leendert A. Hartog
Oh... and 64 bit, obviously...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


On 26/06/2016 07:44:14, Leendert A. Hartog  wrote:
Windows 10
Softimage 2015 R2-SP2
"internal" Python 2.7.3
Pyside 1.2.2
PyQtForSoftimage_beta6.xsiaddon

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


On 26/06/2016 04:57:07, Steven Caron  wrote:
Ok, I have windows 7 and everything is working as expected. Let's debug this?

Win 7 64bit, check...
Softimage version?
Python version?
PyQt or PySide? which version exactly...
Version of PyQtForSoftimage plugin?


On Sat, Jun 25, 2016 at 7:50 PM, Martin mailto:furik...@gmail.com]> wrote:

 I'm on Windows 7 Ultimate.

Martin
Sent from my iPhone

On 2016/06/26, at 11:36, Steven Caron mailto:car...@gmail.com]> wrote:


which operating system are you guys on?

On Sat, Jun 25, 2016 at 7:11 PM, Martin mailto:furik...@gmail.com]> wrote:

Yeah that's the same problem I had a few months ago.

My "solution" was to use the internal Python and load pyside modules in a 
workgroup. I can send you that workgroup folder if you want.

Martin
Sent from my iPhone

On 2016/06/26, at 1:30, Leendert A. Hartog mailto:hirazib...@live.nl]> wrote:


I have tried installing the PyQtForSoftimage addon today, after having 
successfully installed PyQt and PySide, but the PyQt_EXamples all return a "COM 
Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 
0x80020101"-error... I haven't got a clue what is going on...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com [http://si-community.com] & 
xsiforum.de [http://xsiforum.de]


--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.


--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.


-- Softimage Mailing List. To unsubscribe, send a mail to 
softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and 
reply to confirm.--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Leendert A. Hartog
Windows 10
Softimage 2015 R2-SP2
"internal" Python 2.7.3
Pyside 1.2.2
PyQtForSoftimage_beta6.xsiaddon

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


On 26/06/2016 04:57:07, Steven Caron  wrote:
Ok, I have windows 7 and everything is working as expected. Let's debug this?

Win 7 64bit, check...
Softimage version?
Python version?
PyQt or PySide? which version exactly...
Version of PyQtForSoftimage plugin?


On Sat, Jun 25, 2016 at 7:50 PM, Martin mailto:furik...@gmail.com]> wrote:

 I'm on Windows 7 Ultimate.

Martin
Sent from my iPhone

On 2016/06/26, at 11:36, Steven Caron mailto:car...@gmail.com]> wrote:


which operating system are you guys on?

On Sat, Jun 25, 2016 at 7:11 PM, Martin mailto:furik...@gmail.com]> wrote:

Yeah that's the same problem I had a few months ago.

My "solution" was to use the internal Python and load pyside modules in a 
workgroup. I can send you that workgroup folder if you want.

Martin
Sent from my iPhone

On 2016/06/26, at 1:30, Leendert A. Hartog mailto:hirazib...@live.nl]> wrote:


I have tried installing the PyQtForSoftimage addon today, after having 
successfully installed PyQt and PySide, but the PyQt_EXamples all return a "COM 
Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 
0x80020101"-error... I haven't got a clue what is going on...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com [http://si-community.com] & 
xsiforum.de [http://xsiforum.de]


--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.


--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com 
[mailto:softimage-requ...@listproc.autodesk.com] with "unsubscribe" in the 
subject, and reply to confirm.


-- Softimage Mailing List. To unsubscribe, send a mail to 
softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and 
reply to confirm.--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Steven Caron
Ok, I have windows 7 and everything is working as expected. Let's debug
this?

Win 7 64bit, check...
Softimage version?
Python version?
PyQt or PySide? which version exactly...
Version of PyQtForSoftimage plugin?


On Sat, Jun 25, 2016 at 7:50 PM, Martin  wrote:

>  I'm on Windows 7 Ultimate.
>
> Martin
> Sent from my iPhone
>
> On 2016/06/26, at 11:36, Steven Caron  wrote:
>
> which operating system are you guys on?
>
> On Sat, Jun 25, 2016 at 7:11 PM, Martin  wrote:
>
>> Yeah that's the same problem I had a few months ago.
>>
>> My "solution" was to use the internal Python and load pyside modules in a
>> workgroup. I can send you that workgroup folder if you want.
>>
>> Martin
>> Sent from my iPhone
>>
>> On 2016/06/26, at 1:30, Leendert A. Hartog  wrote:
>>
>> I have tried installing the PyQtForSoftimage addon today, after having
>> successfully installed PyQt and PySide, but the PyQt_EXamples all return a
>> "COM Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error
>> 0x80020101"-error... I haven't got a clue what is going on...
>>
>> Greetz
>> Leendert
>> AKA Hirazi Blue
>> Softimage hobbyist, admin at si-community.com & xsiforum.de
>>
>>
>> --
>> Softimage Mailing List.
>> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
>> with "unsubscribe" in the subject, and reply to confirm.
>>
>>
>> --
>> Softimage Mailing List.
>> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
>> with "unsubscribe" in the subject, and reply to confirm.
>>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
>
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Martin
 I'm on Windows 7 Ultimate.

Martin
Sent from my iPhone

> On 2016/06/26, at 11:36, Steven Caron  wrote:
> 
> which operating system are you guys on?
> 
>> On Sat, Jun 25, 2016 at 7:11 PM, Martin  wrote:
>> Yeah that's the same problem I had a few months ago.
>> 
>> My "solution" was to use the internal Python and load pyside modules in a 
>> workgroup. I can send you that workgroup folder if you want.
>> 
>> Martin
>> Sent from my iPhone
>> 
>>> On 2016/06/26, at 1:30, Leendert A. Hartog  wrote:
>>> 
>>> I have tried installing the PyQtForSoftimage addon today, after having 
>>> successfully installed PyQt and PySide, but the PyQt_EXamples all return a 
>>> "COM Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 
>>> 0x80020101"-error... I haven't got a clue what is going on...
>>> 
>>> Greetz
>>> Leendert
>>> AKA Hirazi Blue
>>> Softimage hobbyist, admin at si-community.com & xsiforum.de
>>> 
>>> 
>>> --
>>> Softimage Mailing List.
>>> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
>>> "unsubscribe" in the subject, and reply to confirm.
>> 
>> --
>> Softimage Mailing List.
>> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
>> "unsubscribe" in the subject, and reply to confirm.
> 
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
> "unsubscribe" in the subject, and reply to confirm.
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Steven Caron
which operating system are you guys on?

On Sat, Jun 25, 2016 at 7:11 PM, Martin  wrote:

> Yeah that's the same problem I had a few months ago.
>
> My "solution" was to use the internal Python and load pyside modules in a
> workgroup. I can send you that workgroup folder if you want.
>
> Martin
> Sent from my iPhone
>
> On 2016/06/26, at 1:30, Leendert A. Hartog  wrote:
>
> I have tried installing the PyQtForSoftimage addon today, after having
> successfully installed PyQt and PySide, but the PyQt_EXamples all return a
> "COM Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error
> 0x80020101"-error... I haven't got a clue what is going on...
>
> Greetz
> Leendert
> AKA Hirazi Blue
> Softimage hobbyist, admin at si-community.com & xsiforum.de
>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
>
>
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com
> with "unsubscribe" in the subject, and reply to confirm.
>
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Re: PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Martin
Yeah that's the same problem I had a few months ago.

My "solution" was to use the internal Python and load pyside modules in a 
workgroup. I can send you that workgroup folder if you want.

Martin
Sent from my iPhone

> On 2016/06/26, at 1:30, Leendert A. Hartog  wrote:
> 
> I have tried installing the PyQtForSoftimage addon today, after having 
> successfully installed PyQt and PySide, but the PyQt_EXamples all return a 
> "COM Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 
> 0x80020101"-error... I haven't got a clue what is going on...
> 
> Greetz
> Leendert
> AKA Hirazi Blue
> Softimage hobbyist, admin at si-community.com & xsiforum.de
> 
> 
> --
> Softimage Mailing List.
> To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
> "unsubscribe" in the subject, and reply to confirm.
--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

PyQtForSoftimage Examples "Out of present range" error

2016-06-25 Thread Leendert A. Hartog
I have tried installing the PyQtForSoftimage addon today, after having 
successfully installed PyQt and PySide, but the PyQt_EXamples all return a "COM 
Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 
0x80020101"-error... I haven't got a clue what is going on...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

RE: Workgroup changes do not "stick"...

2016-06-25 Thread Leendert A. Hartog
The problem seems to have resolved itself after resetting the User folder. 
Sorry for the noise...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


On 25/06/2016 18:08:53, Derek Jenson  wrote:
I've seen a possible related behavior with Softimage 2015 sp2 ; where if 
Softimage crashes all workgroups are disconnected.

This isn't an issue with Softimage 2011 sp2.


Date: Sat, 25 Jun 2016 17:33:53 +0200
Subject: Workgroup changes do not "stick"...
From: hirazib...@live.nl
To: softimage@listproc.autodesk.com


When I connect or disconnect a new workgroup and restart the change doesn't 
stick.
If I manually save the "Preferences" it does, but this is not what is to be 
expected...
What am I doing wrong?


Greetz

Leendert

AKA Hirazi Blue

Softimage hobbyist, admin at si-community.com & xsiforum.de



--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

RE: Workgroup changes do not "stick"...

2016-06-25 Thread Derek Jenson
I've seen a possible related behavior with Softimage 2015 sp2 ; where if 
Softimage crashes all workgroups are disconnected.
This isn't an issue with Softimage 2011 sp2.

Date: Sat, 25 Jun 2016 17:33:53 +0200
Subject: Workgroup changes do not "stick"...
From: hirazib...@live.nl
To: softimage@listproc.autodesk.com

When I connect or disconnect a new workgroup and restart the change doesn't 
stick.If I manually save the "Preferences" it does, but this is not what is to 
be expected...What am I doing wrong?

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm. 
  --
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Workgroup changes do not "stick"...

2016-06-25 Thread Leendert A. Hartog
When I connect or disconnect a new workgroup and restart the change doesn't 
stick.
If I manually save the "Preferences" it does, but this is not what is to be 
expected...
What am I doing wrong?


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

"external" Python crashes Softimage onstartup

2016-06-25 Thread Leendert A. Hartog
Just noticed something extremely worrisome...
Unchecking the "Use Python Installed with Softimage (Windows Only)" flag in the 
Script Editor Preferences causes Softimage to crash at (re-)startup,
making it impossible to use an "external" Python with Softimage as far as I can 
tell...
Is there something I am overlooking? I installed an "external" Python 2.7 and 
the corresponding Pywin32...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de

--
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.