Re: [scripting] OM inside SCOP doesnt work but command does?!

Date : Mon, 05 Nov 2007 13:55:35 +0100
To : XSI(at)Softimage.COM
From : Philipp Oeser <philipp.oeser(at)liga01.de>
Subject : Re: [scripting] OM inside SCOP doesnt work but command does?!
Thanks Peter and Kim,

one thing still bugs me though:

- It seems to be OK to plug "KinematicState" into a port and then read out and modify one of _its_ properties ("Transform") [and when I was talking about "objects" I meant classes: "kine" and "transform" are not the same class/object - I was propably leaving the correct programming vocabulary here, sorry...]. Or, like Peter said: I am "only modifying parameters or properties which are connected" and "only touching the very thing which is connected". Hm, if I touch a property of something, is that touching "the very thing"?...Anyways...at least it is "downwind the hierarchy", I guess thats what counts.

- It is _not_OK to plug a customoperator into a port and modify one of _its_ properties ("Parameters") [at least its not working]
Am I not touching the very thing?

The brat is back :)




peter boeykens schrieb:
 
Thanx Steven,
So is this _generally_ OK or is this an exception to Kim's "law"?
(1) In your case you modify an object - kinematicstate.transform - (or  its parameters posx, posy...) that is not even the object plugged into the port but one further down the hierarchy, which works [thats how i naivly did it in the past]
no this is exactly the point: you cannot plug an object ("x3dobject") into a scop.
you have to connect specific parameter(s), groups of parameters, or the geometry/primitive to the port.
Other parameters or properties on the same object should be left alone. Only those connected can be modified.
 
This case is not exception:
With the .transform, you can read the transform into your scop, which contains the combination of translation, scaling and rotation. You can modify those individually on the transform, and then output the modified transform back to the object. You're only touching the very thing which is connected to the scop.
 
I guess its a bit hard to grasp, but you're not modifying the individual parameters directly, but the total transform.
 
Ah, OK...that wasnt really clear to me.
So when I output to SRT, I should better put posx, posy, posz, rotx, roty, rotz, sclx, scly, sclz in seperate ports?
the .transform allows you to access all of those, since they're all contained within it.
one port is more convenient than 9, I would expect it to be faster too.
Or can I change everything related to the object (thats connected to the port) as long as it is animatable?
no, only the very item/parameter/property connected to the port, not anything else on the same object.
if there's other parameters you want to change, you have to add them as additional ports to the scop.
 
it would help if the documentation came with some detailed examples on scops.
(2) Kim says "No changes to anything that isn’t plugged into a port is the rule"
(3) In the original post I tried to modify a parameter of an object which is plugged into the port, which didnt work
get my confusion?
well I sure do get confused with scops :-)
I guess with what Kim said, one is on the safe side, right?...have a nice weekend

Stephen Blair schrieb:
Hi Philipp
 
You can connect to the KinematicState and then modify KinematicState.Transform.
 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Philipp Oeser
Sent: Fri 02 November 2007 1:52 PM
To: XSI(at)Softimage.COM
Subject: Re: [scripting] OM inside SCOP doesnt work but command does?!

kim aldis schrieb:

In fact, changing the value even using the OM is bad. No changes to anything that isn’t plugged into a port is the rule. Since the mute parameter isn’t animatable you can’t  plug it into a port.


-- 


LIGA_01 COMPUTERFILM GmbH
Philipp Oeser

MUNICH
Landwehrstrasse 60-62
80336 Munich, Germany
fon: +49 - (0)89 - 51 555 8-88
fax: +49 - (0)89 - 51 555 8-77

www.liga01.com

Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte den Absender und löschen diese Nachricht. Das unerlaubte Kopieren und die unbefugte Weiterleitung dieser Nachricht sind nicht gestattet.

This message may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete this message. Any unauthorised copying, disclosure or distribution of this message is strictly forbidden.
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


-- 


LIGA_01 COMPUTERFILM GmbH
Philipp Oeser

MUNICH
Landwehrstrasse 60-62
80336 Munich, Germany
fon: +49 - (0)89 - 51 555 8-88
fax: +49 - (0)89 - 51 555 8-77

www.liga01.com

Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte den Absender und löschen diese Nachricht. Das unerlaubte Kopieren und die unbefugte Weiterleitung dieser Nachricht sind nicht gestattet.

This message may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete this message. Any unauthorised copying, disclosure or distribution of this message is strictly forbidden.
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


-- 


LIGA_01 COMPUTERFILM GmbH
Philipp Oeser

MUNICH
Landwehrstrasse 60-62
80336 Munich, Germany
fon: +49 - (0)89 - 51 555 8-88
fax: +49 - (0)89 - 51 555 8-77

www.liga01.com

Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte den Absender und löschen diese Nachricht. Das unerlaubte Kopieren und die unbefugte Weiterleitung dieser Nachricht sind nicht gestattet.

This message may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete this message. Any unauthorised copying, disclosure or distribution of this message is strictly forbidden.
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.