RE: Siggraph dinner details - ITTA 10

2012-07-27 Thread Sandy Sutherland
Unfortunately our plans to get over there fell through - was going to be too 
expensive!  Maybe another time.

sigh.

_
Sandy Sutherland
Technical Supervisor
sandy.sutherl...@triggerfish.co.za
_





From: softimage-boun...@listproc.autodesk.com 
[softimage-boun...@listproc.autodesk.com] on behalf of Matt Lind 
[ml...@carbinestudios.com]
Sent: 28 July 2012 00:19
To: softimage@listproc.autodesk.com
Subject: RE: Siggraph dinner details - ITTA 10

Only 1 week to go and the guest list looks suspiciously empty compared to years 
past.  The restaurant requires I give them a confirmed guest list in advance.  
If your name does not appear in the ‘attending’ list, you will not have a seat 
at the dinner table.  If you plan on attending, please RSVP now by following 
the instructions posted on the event.

For those who need a direct link:

https://www.facebook.com/events/180629212069552/


thanks,


Matt





From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind
Sent: Tuesday, July 24, 2012 8:31 PM
To: softimage@listproc.autodesk.com
Subject: RE: Siggraph dinner details - ITTA 10

PS – see the “events” section of the page for details and to RSVP.


Matt



From: 
softimage-boun...@listproc.autodesk.com
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind
Sent: Tuesday, July 24, 2012 8:30 PM
To: softimage@listproc.autodesk.com
Subject: Siggraph dinner details - ITTA 10

Thank you to all who responded to my survey from a few weeks ago.  The results 
have been tallied and almost 85% of you requested Sunday as the first choice of 
meeting time, and a smaller percentage specifically requested a return to 
Trader Vic’s.   Therefore, common sense says to do just that.

If interested in attending, please RSVP via the event’s facebook page (work in 
progress….and please follow the instructions in the event’s description).

http://www.facebook.com/itta.10

If you have problems accessing the page, contact me offline at: 
matt[dot]lind[at]mantom[dot]net


Thanks,

Matt


Re: get all the expressions driven by a parameter

2012-07-27 Thread Alok Gandhi
Hi Jo,


*"This is the purpose of the DOD paradigm to think about how the data
should be input and how it should be treated.  This would be too
pretentious from me to say it has been used here, but trying to treat the
data the more linearly possible is a good start, it saves memory and
speed.  I can bet easily, speed increases massively on yours or Jeremie's
if lot more than 2 or 3 parameters are treated compared to mine.  One of
the effects of using DOD is you're ending by processing the data linearly
which avoid any query next and make your code really fast and reactive. "*

The DOD is a nice pattern , I agree.

*"About the function calls thing, I would say, that making one function
call instead of many would not influence so much speed results.  A function
is a simple object as many other stored on the heap once created and called
with arguments (other objects).  There is no special initialisation nor
building done each time.  But even by considering this, and making my
function called with xsi parameters passed one by one, this is still faster
(20perc on my machine) and this for many different other reasons."*

I would like to differ here, please look at the simple logic or semantics.
If want to grab data from XSI, it takes some time to query the data. If i
query once and store it in a hash, do not have to query it again, I simply
look at my stored hash which is way faster. If you wrap a function which is
trying to query data inside of itself, every time you make a call to the
function you adding the overhead by the data query. As simple as that. You
can see the this has already worked for Jeremy from his reply above.

*"*If I didn't chose any dictionaries based implementations as you did,
this is because the python hash table implementation is generic and use lot
of memory with lost of blocks where py list are implemented as linked list
and permit really fast appending, O(1).*"*
*
*
In this case here, the reason to use dictionary was for faster look ups.
For look ups specially dictionary are a way to go for me always. I would
rather use a dictionary then to store in a list/tuple and then have to do
dirty labmdas or other stuff to retreive by list.index() and what not.You
really can't beat the python hash table. They may have more memory
requirements, but these days, it really is not a problem. For tasks such as
these, I suspect it really would not make impact even on a machine with 8
gigs. The hash table are good and really good for one thing, fast look ups.
No wonder Google uses python as their main scripting languages and the
dictionary is one good reason for it. You can easily verify this on
Official Google Developers Videos on You Tube
http://www.youtube.com/watch?v=haycL41dAhg.

Cheers !


Re: get all the expressions driven by a parameter

2012-07-27 Thread jo benayoun
Hey Alok,
thanks for you feedback, I think you're mistaken in the interpretation of
the code layout I chose tho.
This is the purpose of the DOD paradigm to think about how the data should
be input and how it should be treated.  This would be too pretentious from
me to say it has been used here, but trying to treat the data the more
linearly possible is a good start, it saves memory and speed.  I can bet
easily, speed increases massively on yours or Jeremie's if lot more than 2
or 3 parameters are treated compared to mine.  One of the effects of using
DOD is you're ending by processing the data linearly which avoid any query
next and make your code really fast and reactive.

About the function calls thing, I would say, that making one function call
instead of many would not influence so much speed results.  A function is a
simple object as many other stored on the heap once created and called with
arguments (other objects).  There is no special initialisation nor building
done each time.  But even by considering this, and making my function
called with xsi parameters passed one by one, this is still faster (20perc
on my machine) and this for many different other reasons.

If I didnt chose any dictionaries based implementations as you did, this is
because the python hash table implementation is generic and use lot of
memory with lost of blocks where py list are implemented as linked list and
permit really fast appending, O(1).

:)
-- Jo







2012/7/27 Eric Thivierge 

> Maybe something like this depending on if you use "this_model" (I dont'
> recommend it as we've seen tons of expression corruptions involving this).
>
> collExpressions = xsi.FindObjects2(c.siExpressionID)
> lTgtExprs = [x for x in collExpressions if "null.kine.local.posx" in
> x.Parameters("Definition").Value]
>
> 
> Eric Thivierge
> http://www.ethivierge.com
>


Re: get all the expressions driven by a parameter

2012-07-27 Thread Alok

  
  
Glad to help :)
  

  On 27/07/2012 7:22 PM, Jeremie Passerin wrote:

Okay you are my hero Alok !
  with your approach looping 10 times on this function went
from 1min5sec to 6sec !
  
  
  thanks a lot !
  

On 27 July 2012 16:09, Jeremie Passerin
  
  wrote:
  
Thanks Matt !


Interesting solution Alok, my issue is not the 2sec that it
takes to perform the seach but that I am looping on this
method about 20 times... so it makes sense to try something
like that ! I'll give it a try right now !

  

On 27 July 2012 15:54, Alok 
  wrote:
  

  Maybe globally store the expressions with
their params in a hash (dictionary in Python)
and then do the reverse look up. Will not run faster but will save you
  time for each call to getExpressionsDrivenByParameter()

In this case:
PARAM_EXPR_DICT = {}
  for expr in Application.FindObjects(None,
  "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
      ports = expr.InputPorts
      if not ports.Count:
          continue
    for port in in
  ports :
    paramName =
  port.Target2.FullName
      if not
  PARAM_EXPR_DICT.has_key(paramName):
  PARAM_EXPR_DICT[paramName] = []
     
  PARAM_EXPR_DICT[paramName].append(expr)
      
      
  Then you can test it for parameter simply by:
  def getExpressionsDrivenByParameter( param ):
      return (PARAM_EXPR_DICT[param.FullName] if
  PARAM_EXPR_DICT.has_key(param.Name) else None)
  

  


  Alok.
  


   On 27/07/2012 5:44 PM, Jeremie Passerin
wrote:
  

  
  

  Hi guys, 


I was wondering what is your technique
  to get all the expressions driven by a
  parameter. 
I'm trying to find the fastest way to
  do it. 
here is my code : 



  def

  getExpressionsDrivenByParameter( param
  ):
  

   allExpressions

  = xsi.FindObjects(None,
  "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
   
   result

  = []
   for

  exp in allExpressions:
   for

  port in exp.InputPorts:
   if

  port.Target2.IsEqualTo(param) and
  exp.OutputPorts.Count:
   result.append(exp)
   break
   
   return

  result



With around 5000 expressions in my
  scene it takes about 2sec to get the
  result. Anyone got a faster solution ? 


cheers, 
Jeremie
  

No virus found
  in this message.
  Checked by AVG - www.

Re: get all the expressions driven by a parameter

2012-07-27 Thread Alok

Hey Jo,

Nice job ! but my approach did not involve one function approach to 
speed up as you used in your profiling, rather it was just to globally 
store the data and look up as needed. The initial data pull was still 
the same as Jeremy with a little correction from Matt, but after that 
the subsequent function calls do not need to query data again as it is 
already available through the hash. So , my approach was really to store 
the data once, which I think is working good for Jeremy for now.


Cheers!!

Alok.

On 27/07/2012 7:25 PM, jo benayoun wrote:

Hey Jeremie,
Here is what I am coming with on a character with thousands of 
expressions:

# method 1 took 5.42011094882 and find 3 expressions.
# method 2 took 2.31037755754 and find 3 expressions.
# method 3 took 5.41616293425 and find 3 expressions.
I would recommend you to take a look at a paradigm that is called 
Data-Oriented Design and which is specially considered to avoid CPU 
usage and fast computation.

Let me know if this fit your needs :)
-- Jo




import time


SI_EXPRESSION_ID = 49


def Jerems( param ):
allExpressions = Application.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")

 result = []
 for exp in allExpressions:
if exp.OutputPorts.Count:
   for port in exp.InputPorts:
   if port.Target2.IsEqualTo(param):
result.append(exp)
break
 return result


def exprs_from_parameters(parameters):
if type(parameters) not in (list, tuple):
parameters = (parameters, )

res = list()
parameters = [p for p in parameters if p is not None]
nparameters = len(parameters)
if nparameters == 0:
return res

expressions = Application.FindObjects2(SI_EXPRESSION_ID)

res = [list() for i in xrange(nparameters)]
for exp in expressions:
sources = [iport.Target2 for iport in exp.InputPorts]
for i in xrange(nparameters):
b = [src.IsEqualTo(parameters[i]) for src in sources]
if any(b):
res[i].append(exp)
return tuple(res)


def Aloks(param):
PARAM_EXPR_DICT = {}
for expr in Application.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):

ports = expr.InputPorts
if not ports.Count:
continue
for port in ports:
paramName = port.Target2.FullName
if not PARAM_EXPR_DICT.has_key(paramName):
PARAM_EXPR_DICT[paramName] = []
PARAM_EXPR_DICT[paramName].append(expr)
return PARAM_EXPR_DICT[param.FullName] if 
PARAM_EXPR_DICT.has_key(param.Name) else None




msg = "method {0} took {1} and find {2} expressions."


def timethat1():
ppg = Application.Selection(0)
res = []
t = time.clock()
for param in ppg.Parameters:
res.append(Jerems(param))
t = time.clock() - t
print msg.format(1, t, sum([len(r) for r in res]))


def timethat2():
ppg = Application.Selection(0)
t = time.clock()
res = exprs_from_parameters(tuple(ppg.Parameters))
t = time.clock() - t
print msg.format(2, t, sum([len(r) for r in res]))


def timethat3():
ppg = Application.Selection(0)
res = []
t = time.clock()
for param in ppg.Parameters:
res.append(Aloks(param))
t = time.clock() - t
print msg.format(3, t, sum([len(r) for r in res]))



timethat1()
timethat2()
timethat3()






















2012/7/27 Jeremie Passerin >


Thanks Matt !

Interesting solution Alok, my issue is not the 2sec that it takes
to perform the seach but that I am looping on this method about 20
times... so it makes sense to try something like that ! I'll give
it a try right now !


On 27 July 2012 15:54, Alok mailto:alok.gan...@modusfx.com>> wrote:

Maybe globally store the expressions with their params in a
hash (dictionary in Python) and then do the reverse look up.
Will not run faster but will save you time for each call to
getExpressionsDrivenByParameter()

In this case:
PARAM_EXPR_DICT = {}
for expr in Application.FindObjects(None,
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
ports = expr.InputPorts
if not ports.Count:
continue
for port in in ports :
paramName = port.Target2.FullName
if not PARAM_EXPR_DICT.has_key(paramName):
PARAM_EXPR_DICT[paramName] = []
PARAM_EXPR_DICT[paramName].append(expr)


Then you can test it for parameter simply by:
def getExpressionsDrivenByParameter( param ):
return (PARAM_EXPR_DICT[param.FullName] if
PARAM_EXPR_DICT.has_key(param.Name) else None)




Alok.

On 27/07/2012 5:44 PM, Jeremie Passerin wrote:

Hi guys,

I was wondering what is your technique to get all the
expressions driven by a parameter.
I'm trying to find the fastest way to do it.
here is my code :

def getExpressionsDrivenByParameter( param ):

a

Re: get all the expressions driven by a parameter

2012-07-27 Thread jo benayoun
Hey Jeremie,
Here is what I am coming with on a character with thousands of expressions:
# method 1 took 5.42011094882 and find 3 expressions.
# method 2 took 2.31037755754 and find 3 expressions.
# method 3 took 5.41616293425 and find 3 expressions.
I would recommend you to take a look at a paradigm that is called
Data-Oriented Design and which is specially considered to avoid CPU usage
and fast computation.
Let me know if this fit your needs :)
-- Jo




import time


SI_EXPRESSION_ID = 49


def Jerems( param ):
 allExpressions = Application.FindObjects(None,
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
 result = []
 for exp in allExpressions:
if exp.OutputPorts.Count:
   for port in exp.InputPorts:
   if port.Target2.IsEqualTo(param):
result.append(exp)
break
 return result


def exprs_from_parameters(parameters):
if type(parameters) not in (list, tuple):
parameters = (parameters, )

res = list()
parameters = [p for p in parameters if p is not None]
nparameters = len(parameters)
if nparameters == 0:
return res

expressions = Application.FindObjects2(SI_EXPRESSION_ID)

res = [list() for i in xrange(nparameters)]
for exp in expressions:
sources = [iport.Target2 for iport in exp.InputPorts]
for i in xrange(nparameters):
b = [src.IsEqualTo(parameters[i]) for src in sources]
if any(b):
res[i].append(exp)
return tuple(res)


def Aloks(param):
PARAM_EXPR_DICT = {}
for expr in Application.FindObjects(None,
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
ports = expr.InputPorts
if not ports.Count:
continue
for port in ports:
paramName = port.Target2.FullName
if not PARAM_EXPR_DICT.has_key(paramName):
PARAM_EXPR_DICT[paramName] = []
PARAM_EXPR_DICT[paramName].append(expr)
return PARAM_EXPR_DICT[param.FullName] if
PARAM_EXPR_DICT.has_key(param.Name) else None



msg = "method {0} took {1} and find {2} expressions."


def timethat1():
ppg = Application.Selection(0)
res = []
t = time.clock()
for param in ppg.Parameters:
res.append(Jerems(param))
t = time.clock() - t
print msg.format(1, t, sum([len(r) for r in res]))


def timethat2():
ppg = Application.Selection(0)
t = time.clock()
res = exprs_from_parameters(tuple(ppg.Parameters))
t = time.clock() - t
print msg.format(2, t, sum([len(r) for r in res]))


def timethat3():
ppg = Application.Selection(0)
res = []
t = time.clock()
for param in ppg.Parameters:
res.append(Aloks(param))
t = time.clock() - t
print msg.format(3, t, sum([len(r) for r in res]))



timethat1()
timethat2()
timethat3()






















2012/7/27 Jeremie Passerin 

> Thanks Matt !
>
> Interesting solution Alok, my issue is not the 2sec that it takes to
> perform the seach but that I am looping on this method about 20 times... so
> it makes sense to try something like that ! I'll give it a try right now !
>
>
> On 27 July 2012 15:54, Alok  wrote:
>
>>  Maybe globally store the expressions with their params in a hash
>> (dictionary in Python) and then do the reverse look up. Will not run
>> faster but will save you time for each call to
>> getExpressionsDrivenByParameter()
>>
>> In this case:
>> PARAM_EXPR_DICT = {}
>> for expr in Application.FindObjects(None,
>> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
>> ports = expr.InputPorts
>> if not ports.Count:
>> continue
>> for port in in ports :
>> paramName = port.Target2.FullName
>> if not PARAM_EXPR_DICT.has_key(paramName):
>> PARAM_EXPR_DICT[paramName] = []
>> PARAM_EXPR_DICT[paramName].append(expr)
>>
>>
>> Then you can test it for parameter simply by:
>> def getExpressionsDrivenByParameter( param ):
>> return (PARAM_EXPR_DICT[param.FullName] if
>> PARAM_EXPR_DICT.has_key(param.Name) else None)
>>
>>
>>
>>
>> Alok.
>>
>>  On 27/07/2012 5:44 PM, Jeremie Passerin wrote:
>>
>> Hi guys,
>>
>>  I was wondering what is your technique to get all the expressions
>> driven by a parameter.
>> I'm trying to find the fastest way to do it.
>> here is my code :
>>
>>  def getExpressionsDrivenByParameter( param ):
>>
>>  allExpressions = xsi.FindObjects(None,
>> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
>>   result = []
>>  for exp in allExpressions:
>>  for port in exp.InputPorts:
>>  if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
>>  result.append(exp)
>>  break
>>   return result
>>
>>  With around 5000 expressions in my scene it takes about 2sec to get the
>> result. Anyone got a faster solution ?
>>
>>  cheers,
>> Jeremie
>>
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2197 / Virus Database: 2437/5158 - Release Date: 07/27/12
>>
>>
>>
>


Re: get all the expressions driven by a parameter

2012-07-27 Thread Jeremie Passerin
Okay you are my hero Alok !
with your approach looping 10 times on this function went from 1min5sec to
6sec !

thanks a lot !


On 27 July 2012 16:09, Jeremie Passerin  wrote:

> Thanks Matt !
>
> Interesting solution Alok, my issue is not the 2sec that it takes to
> perform the seach but that I am looping on this method about 20 times... so
> it makes sense to try something like that ! I'll give it a try right now !
>
>
> On 27 July 2012 15:54, Alok  wrote:
>
>>  Maybe globally store the expressions with their params in a hash
>> (dictionary in Python) and then do the reverse look up. Will not run
>> faster but will save you time for each call to
>> getExpressionsDrivenByParameter()
>>
>> In this case:
>> PARAM_EXPR_DICT = {}
>> for expr in Application.FindObjects(None,
>> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
>> ports = expr.InputPorts
>> if not ports.Count:
>> continue
>> for port in in ports :
>> paramName = port.Target2.FullName
>> if not PARAM_EXPR_DICT.has_key(paramName):
>> PARAM_EXPR_DICT[paramName] = []
>> PARAM_EXPR_DICT[paramName].append(expr)
>>
>>
>> Then you can test it for parameter simply by:
>> def getExpressionsDrivenByParameter( param ):
>> return (PARAM_EXPR_DICT[param.FullName] if
>> PARAM_EXPR_DICT.has_key(param.Name) else None)
>>
>>
>>
>>
>> Alok.
>>
>>  On 27/07/2012 5:44 PM, Jeremie Passerin wrote:
>>
>> Hi guys,
>>
>>  I was wondering what is your technique to get all the expressions
>> driven by a parameter.
>> I'm trying to find the fastest way to do it.
>> here is my code :
>>
>>  def getExpressionsDrivenByParameter( param ):
>>
>>  allExpressions = xsi.FindObjects(None,
>> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
>>   result = []
>>  for exp in allExpressions:
>>  for port in exp.InputPorts:
>>  if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
>>  result.append(exp)
>>  break
>>   return result
>>
>>  With around 5000 expressions in my scene it takes about 2sec to get the
>> result. Anyone got a faster solution ?
>>
>>  cheers,
>> Jeremie
>>
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2197 / Virus Database: 2437/5158 - Release Date: 07/27/12
>>
>>
>>
>


Instanced group with textures

2012-07-27 Thread John Clausing
Hey all,

I have an ice animation with grids Instanced to particles (Instanced groups) 
the is a randomize value node plugged into the "id" port.

There are 5 different grids in the group, all with different timings of the 
same texture offset in time thru the image node.

The image clips (textures), I should say are discreet versions of the same clip.

In the texture view in the GUI, the textures change over time as they 
should...they render as stills, not clips.

Any ideas?

Thanks,

John

Sent from my iPhone


Re: get all the expressions driven by a parameter

2012-07-27 Thread Jeremie Passerin
Thanks Matt !

Interesting solution Alok, my issue is not the 2sec that it takes to
perform the seach but that I am looping on this method about 20 times... so
it makes sense to try something like that ! I'll give it a try right now !

On 27 July 2012 15:54, Alok  wrote:

>  Maybe globally store the expressions with their params in a hash
> (dictionary in Python) and then do the reverse look up. Will not run
> faster but will save you time for each call to
> getExpressionsDrivenByParameter()
>
> In this case:
> PARAM_EXPR_DICT = {}
> for expr in Application.FindObjects(None,
> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):
> ports = expr.InputPorts
> if not ports.Count:
> continue
> for port in in ports :
> paramName = port.Target2.FullName
> if not PARAM_EXPR_DICT.has_key(paramName):
> PARAM_EXPR_DICT[paramName] = []
> PARAM_EXPR_DICT[paramName].append(expr)
>
>
> Then you can test it for parameter simply by:
> def getExpressionsDrivenByParameter( param ):
> return (PARAM_EXPR_DICT[param.FullName] if
> PARAM_EXPR_DICT.has_key(param.Name) else None)
>
>
>
>
> Alok.
>
>  On 27/07/2012 5:44 PM, Jeremie Passerin wrote:
>
> Hi guys,
>
>  I was wondering what is your technique to get all the expressions driven
> by a parameter.
> I'm trying to find the fastest way to do it.
> here is my code :
>
>  def getExpressionsDrivenByParameter( param ):
>
>  allExpressions = xsi.FindObjects(None,
> "{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
>   result = []
>  for exp in allExpressions:
>  for port in exp.InputPorts:
>  if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
>  result.append(exp)
>  break
>   return result
>
>  With around 5000 expressions in my scene it takes about 2sec to get the
> result. Anyone got a faster solution ?
>
>  cheers,
> Jeremie
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2197 / Virus Database: 2437/5158 - Release Date: 07/27/12
>
>
>


Mocap Connector (was: RE: Any interest in a Kinect for Windows and/or XBox controller capture driver?)

2012-07-27 Thread Eric Cosky
Thanks for the suggestion; I've set up an Indigogo campaign but it won't be
visible until the bank stuff is validated next week. I'm calling it "Mocap
Connector".

In the meantime here are some videos for anyone interested. 

Intro: http://www.youtube.com/watch?v=WMjUhj8VSGg
Kinect: http://www.youtube.com/watch?v=Jxd90LLULds
Xbox: http://www.youtube.com/watch?v=aVRE1da89zw

I wish I had decent video gear and a radio voice, but I think the videos
serve their purpose well enough.

Happy Friday,

Eric Cosky



-Original Message-
From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Alan Fregtman
Sent: Thursday, July 26, 2012 7:42 AM
To: softimage@listproc.autodesk.com
Subject: Re: Any interest in a Kinect for Windows and/or XBox controller
capture driver?

May I suggest http://indiegogo.com/ over kickstarter? Kickstarter is pretty
much US-only.

Indiegogo is the same deal, works in USD, but it accepts most/all countries,
such as Canada (where I'm at.)


On Mon, Jul 23, 2012 at 12:08 PM, Ed Manning  wrote:
> One for me, please!
>
>
> On Mon, Jul 23, 2012 at 12:04 PM, Eric Cosky  wrote:
>>
>> Hi, thanks for the responses.
>>
>>
>>
>> Here’s a very short & rough capture of Softimage being fed Kinect 
>> data through the driver: http://www.youtube.com/watch?v=cc66W0c5vHA I 
>> didn’t make any effort to get a clean capture or anything, just 
>> turned it on and moved around a bit. That start/end show me leaning 
>> down to hit the keyboard. You see the driver window with some of the 
>> driver inputs mapped to a custom parameter set, and the custom 
>> parameter set controls updating in real time while I move around. 
>> What isn’t shown is the companion app which shows the video stream 
>> and skeleton as provided by the Kinect SDK. If it turns out that I 
>> get time add features I’d like to add support for face tracking; the 
>> Kinect API makes this look pretty doable. Another thing I could see 
>> adding is a simple plug-in API to allow people (probably just me) to 
>> make DLLs that would process the skeleton data prior to sending it to 
>> Softimage. While I don’t personally have the need, the system could 
>> be extended to send data to Softimage running on another PC or even 
>> multiple skeleton streams from multiple Kinects. There really are a lot
of interesting ways this tool could evolve if there were enough people to
support the effort.
>>
>>
>>
>> Regarding the Xbox controller, as a gamer/gamedev I find the xbox 
>> controller an ideal input device for two hand control of all kinds of 
>> things. The main thing I like about this setup is that the driver 
>> channel names map to the controller, no generalized joystick labels 
>> that I have to remember what is what (== what axis is the left 
>> trigger?) and it uses positional data so there is no need to set up a 
>> proxy to accumulate data like with the Mojoke driver. Another nice 
>> feature is that it supports 4 controllers for collaborative control 
>> of a rig. The xbox controllers are fairly inexpensive and I use a 
>> “Xbox 360 Wireless Gaming Receiver for Windows” which allows me to 
>> repurpose by xbox controllers if/when I need more inputs. Here is a 
>> short video of a character (please forgive the crude
>> model) being manipulated by a single controller:
>> http://www.youtube.com/watch?v=FpJ7mAvLC4w. There are a few bones in 
>> the neck/jaw hooked up to the parameter set which is being controlled 
>> by the two thumb sticks and triggers.
>>
>>
>>
>> With Softimage there is of course any number of ways to process data, 
>> and I am still learning what kind of setup is the best workflow for 
>> me but at the moment I think the easiest way to go is to use the 
>> “load preset” command for the driver (the folder icon in the toolbar) 
>> to point the targets at different custom parameter sets, which are 
>> then referenced by expressions on deformers in the model being 
>> animated. This has allowed me to switch what I am recording motion 
>> for within a scene pretty easily. An alternative is a synoptic with
scripts to load specific presets.
>>
>>
>>
>> As an aside, I did a rough experiment with making custom ICE nodes to 
>> read device data (essentially ICE input devices) and I might have 
>> been doing something wrong but I found that it was less responsive 
>> than drivers & expressions. I also didn’t care for the need to run 
>> the scene to see the inputs change; I think perhaps this is because 
>> the drivers use a push model whereas ICE uses a pull model for how 
>> data is propagated.  Also, the need for quite a few nodes to just do 
>> a simple “make the right trigger rotate something” led me away from 
>> using ICE nodes as the source of input data. If necessary or useful I 
>> can always make ICE trees get data from the custom parameter set data
targeted by the driver.
>>
>>
>>
>> Currently the companion software is written in .NET for Windows. It’s 
>> not a terrib

Re: get all the expressions driven by a parameter

2012-07-27 Thread Alok
Maybe globally store the expressions with their params in a hash 
(dictionary in Python) and then do the reverse look up. Will not run 
faster but will save you time for each call to 
getExpressionsDrivenByParameter()


In this case:
PARAM_EXPR_DICT = {}
for expr in Application.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}"):

ports = expr.InputPorts
if not ports.Count:
continue
for port in in ports :
paramName = port.Target2.FullName
if not PARAM_EXPR_DICT.has_key(paramName): 
PARAM_EXPR_DICT[paramName] = []

PARAM_EXPR_DICT[paramName].append(expr)


Then you can test it for parameter simply by:
def getExpressionsDrivenByParameter( param ):
return (PARAM_EXPR_DICT[param.FullName] if 
PARAM_EXPR_DICT.has_key(param.Name) else None)





Alok.

On 27/07/2012 5:44 PM, Jeremie Passerin wrote:

Hi guys,

I was wondering what is your technique to get all the expressions 
driven by a parameter.

I'm trying to find the fastest way to do it.
here is my code :

def getExpressionsDrivenByParameter( param ):

allExpressions = xsi.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")

result = []
for exp in allExpressions:
for port in exp.InputPorts:
if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
result.append(exp)
break
return result

With around 5000 expressions in my scene it takes about 2sec to get 
the result. Anyone got a faster solution ?


cheers,
Jeremie

No virus found in this message.
Checked by AVG - www.avg.com 
Version: 2012.0.2197 / Virus Database: 2437/5158 - Release Date: 07/27/12





RE: Siggraph dinner details - ITTA 10

2012-07-27 Thread Matt Lind
Only 1 week to go and the guest list looks suspiciously empty compared to years 
past.  The restaurant requires I give them a confirmed guest list in advance.  
If your name does not appear in the 'attending' list, you will not have a seat 
at the dinner table.  If you plan on attending, please RSVP now by following 
the instructions posted on the event.

For those who need a direct link:

https://www.facebook.com/events/180629212069552/


thanks,


Matt





From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind
Sent: Tuesday, July 24, 2012 8:31 PM
To: softimage@listproc.autodesk.com
Subject: RE: Siggraph dinner details - ITTA 10

PS - see the "events" section of the page for details and to RSVP.


Matt



From: 
softimage-boun...@listproc.autodesk.com
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind
Sent: Tuesday, July 24, 2012 8:30 PM
To: softimage@listproc.autodesk.com
Subject: Siggraph dinner details - ITTA 10

Thank you to all who responded to my survey from a few weeks ago.  The results 
have been tallied and almost 85% of you requested Sunday as the first choice of 
meeting time, and a smaller percentage specifically requested a return to 
Trader Vic's.   Therefore, common sense says to do just that.

If interested in attending, please RSVP via the event's facebook page (work in 
progressand please follow the instructions in the event's description).

http://www.facebook.com/itta.10

If you have problems accessing the page, contact me offline at: 
matt[dot]lind[at]mantom[dot]net


Thanks,

Matt


RE: get all the expressions driven by a parameter

2012-07-27 Thread Matt Lind
Although minor, you could move exp.OutputPorts.Count a little earlier in your 
code as it's testing the same thing for each input port on the operator.You 
should only have to test that once per expression, like this:

def getExpressionsDrivenByParameter( param ):

 allExpressions = xsi.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")

 result = []
 for exp in allExpressions:
if exp.OutputPorts.Count:
   for port in exp.InputPorts:
   if port.Target2.IsEqualTo(param):
result.append(exp)
break

 return result



Other than that, you're dealing with an O(n^2) runtime.  The only way to make 
it significantly faster is to unroll the loops, but may not be possible for 
this task.  You could try reading the "target" and "definition" parameters of 
the expression, but those may be ambiguous for some cases and also result in 
string comparisons which may or may not be faster.


Matt







From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Jeremie Passerin
Sent: Friday, July 27, 2012 2:44 PM
To: softimage
Subject: get all the expressions driven by a parameter

Hi guys,

I was wondering what is your technique to get all the expressions driven by a 
parameter.
I'm trying to find the fastest way to do it.
here is my code :

def getExpressionsDrivenByParameter( param ):

 allExpressions = xsi.FindObjects(None, 
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")

 result = []
 for exp in allExpressions:
  for port in exp.InputPorts:
  if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
   result.append(exp)
   break

 return result

With around 5000 expressions in my scene it takes about 2sec to get the result. 
Anyone got a faster solution ?

cheers,
Jeremie


get all the expressions driven by a parameter

2012-07-27 Thread Jeremie Passerin
Hi guys,

I was wondering what is your technique to get all the expressions driven by
a parameter.
I'm trying to find the fastest way to do it.
here is my code :

def getExpressionsDrivenByParameter( param ):

allExpressions = xsi.FindObjects(None,
"{12723EB2-7DDB-11D0-A57F-00A0C91412DE}")
 result = []
for exp in allExpressions:
for port in exp.InputPorts:
if port.Target2.IsEqualTo(param) and exp.OutputPorts.Count:
result.append(exp)
break
 return result

With around 5000 expressions in my scene it takes about 2sec to get the
result. Anyone got a faster solution ?

cheers,
Jeremie


RE: using ice to drive text ?

2012-07-27 Thread Jeff McFall
nice!
thank you

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Vincent Ullmann
Sent: Friday, July 27, 2012 4:40 PM
To: softimage@listproc.autodesk.com
Subject: Re: using ice to drive text ?

Yes its possible, but a bit tricky...

here is a little compound i made some time ago.
The Naming of the ports are currently in german, becouse it was just a Test a 
made.

You could also check out the emTool_NumberToString-Compund from the free 
emTools by Eric Mootz. It does basicly the same (also internaly)


using ice to drive text ?

2012-07-27 Thread Jeff McFall
Hello,

I thought I had seen a demo at one time of using ice to drive the character 
values of text.

ie I want to display text that reflects the changing numeric values of variables

Is that possible?  I am not seeing anything to grab that would allow me to do 
this

many thanks in advance

Jeff



<>

RE: Digital Dimension, Leviathan + Softimage

2012-07-27 Thread Grahame Fuller
This is also worth noting:

http://area.autodesk.com/blogs/darren/soft-and-strong

Some cool origami efects that reminded me of this from a while back (worth 
posting again):

http://schnellhammer.net/blog/2011/06/skoda-paperworld/

gray

-Original Message-
From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Luc-Eric Rousseau
Sent: Friday, July 27, 2012 03:00 PM
To: softimage@listproc.autodesk.com
Subject: Digital Dimension, Leviathan + Softimage

Was this posted?

Digital Dimension, Softimage and the Autodesk Entertainment Creation Suite
http://www.youtube.com/watch?v=__AhuYOizWI

Leviathan uses Autodesk Softimage in their pipeline for a Skrillex concert
http://www.youtube.com/watch?v=dDAVC3EnHLg&feature=plcp


-
http://www.youtube.com/autodesk
<>

Re: Save As Directory

2012-07-27 Thread Stefan Andersson
Not having softimage in front of me, I think this would work (in python)

print Application.ActiveProject.ActiveScene.Path

regards
stefan andersson



On Jul 27, 2012, at 12:16 PM, Gareth Bell wrote:

> Morning all,
>  
> Potentially having a brain-fart here.
>  
> How does Softimage know where the current scene is located? i.e. when I hit 
> Save As the file browser opens in the directory in which the active scene is 
> located.
> I want to be able to find, using a script, the exact location of the current 
> scene like you can with the filebrowser's .FilePath command (but without 
> bringing up a dialog)
>  
> Any clues welcomed
>  
> cheers
>  
> gareth bell | xsi artist
>  
> t: +44 (0)20 7565 1000
> e: gareth.b...@primefocusworld.com
> a: 37, dean street, london, w1d 4pt, uk.
>  
> www.primefocusworld.com
>  



Digital Dimension, Leviathan + Softimage

2012-07-27 Thread Luc-Eric Rousseau
Was this posted?

Digital Dimension, Softimage and the Autodesk Entertainment Creation Suite
http://www.youtube.com/watch?v=__AhuYOizWI

Leviathan uses Autodesk Softimage in their pipeline for a Skrillex concert
http://www.youtube.com/watch?v=dDAVC3EnHLg&feature=plcp


-
http://www.youtube.com/autodesk


RE: Friday Flashback

2012-07-27 Thread Stephen Blair
Friday Flashback #80
BatchServe 1.5 the Experience
http://wp.me/powV4-1YW




From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Stephen Blair
Sent: July-20-12 11:43 AM
To: softimage@listproc.autodesk.com
Subject: RE: Friday Flashback

Friday Flashback #79
1999 Sumatra Multibot
http://wp.me/powV4-1Aa



From: 
softimage-boun...@listproc.autodesk.com
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Stephen Blair
Sent: July-13-12 7:51 AM
To: softimage@listproc.autodesk.com
Subject: RE: Friday Flashback


Friday Flashback #78

XSI 3.0 pop art

http://wp.me/powV4-SB




From: Stephen Blair
Sent: Friday, July 06, 2012 11:12 AM
To: softimage@listproc.autodesk.com
Subject: RE: Friday Flashback
Friday Flashback #77
Jeopardy time...what's the question for this answer? "Softimage Plug-in 
Description Language"
http://wp.me/powV4-1Xi


From: 
softimage-boun...@listproc.autodesk.com
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Stephen Blair
Sent: June-29-12 10:40 AM
To: softimage@listproc.autodesk.com
Subject: RE: Friday Flashback

Friday Flashback #76
SIGGRAPH 2002: Productivity without creative compromise
http://wp.me/powV4-1WI



From: 
softimage-boun...@listproc.autodesk.com
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Alan Fregtman
Sent: June-22-12 4:44 PM
To: softimage@listproc.autodesk.com
Subject: Re: Friday Flashback

I always wondered what the heck that jelly-like graphic was about. The more you 
know! :)

On Fri, Jun 22, 2012 at 2:47 PM, Stephen Blair 
mailto:stephen.bl...@autodesk.com>> wrote:
Friday Flashback #75
Email blast for an "Experience Softimage XSI 5.1 and Face Robot 1.0" event in 
Orlando, June 2006.
And the jellyfish solver.
http://wp.me/powV4-1VQ


-Original Message-
From: 
softimage-boun...@listproc.autodesk.com
 
[mailto:softimage-boun...@listproc.autodesk.com]
 On Behalf Of Michal Doniec
Sent: June-18-12 5:20 AM
To: softimage@listproc.autodesk.com
Subject: Re: Friday Flashback

I've learned how to model faces from one nurbs surface from this one.

On Fri, Jun 15, 2012 at 4:07 PM, Stephen Blair
mailto:stephen.bl...@autodesk.com>> wrote:
> Friday Flashback #74
> Secrets of Softimage 3D from 1997
> http://wp.me/powV4-1V1
>
>
> From: 
> softimage-boun...@listproc.autodesk.com
>  
> [mailto:softimage-boun...@listproc.autodesk.com]
>  On Behalf Of Stephen Blair
> Sent: June-08-12 12:21 PM
> To: softimage@listproc.autodesk.com
> Subject: RE: Friday Flashback
>
> Friday Flashback #73
> Customer spotlight from 2007
> http://wp.me/powV4-1U0
>
>
> From: 
> softimage-boun...@listproc.autodesk.com
>  
> [mailto:softimage-boun...@listproc.autodesk.com]
>  On Behalf Of Matt Lind
> Sent: June-01-12 4:44 PM
> To: softimage@listproc.autodesk.com
> Subject: RE: Friday Flashback
>
> Never did understand the logo for behavior.
>
>
> Matt
>
>
>
> From: 
> softimage-boun...@listproc.autodesk.com
>  
> [mailto:softimage-boun...@listproc.autodesk.com]
>  On Behalf Of Stephen Blair
> Sent: Friday, June 01, 2012 8:15 AM
> To: softimage@listproc.autodesk.com
> Subject: RE: Friday Flashback
>
> Friday Flashback #72
> MOVE
> ...Creativity without limits...
> ...the first scalable, fully programmable crowd simulation and behavioral 
> animation system...
> http://wp.me/powV4-1T2
>
>
> From: 
> softimage-boun...@listproc.autodesk.com>
>  
> [mailto:softimage-boun...@listproc.autodesk.com]
>  On Behalf Of Steven Caron
> Sent: May-25-12 2:11 PM
> To: 
> softimage@listproc.autodesk.com>
> Subject: Re: Friday Flashback
>
> thats hilarious
> On Fri, May 25, 2012 at 9:13 AM, Grahame Fuller 
> mailto:grahame.ful...@autodesk.com>>>
>  wrote:
> XSI got a couple of things out of it

Re: Freeze ICE tree to geometry?

2012-07-27 Thread Gerbrand Nel
This is a pretty late reply to a closed topic, but I just ran into this 
problem and found that soft has a built in alternative to this.

http://softimage.wiki.softimage.com/xsidocs/ikine_kinematics2_ControllingObjectTransformationswithParticles.htm
Hope it helps someone
G

On 2012/07/13 07:42 PM, Grahame Fuller wrote:

Glad to hear. I was an interesting exercise, and kinda fun too.

gray

-Original Message-
From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Fabricio Chamon
Sent: Friday, July 13, 2012 12:27 PM
To: softimage@listproc.autodesk.com
Subject: Re: Freeze ICE tree to geometry?

yes, that was it! The randomize value by range (set to 0 - 1) was
returning -1. So a clamp solved the issue.
Nice you already put this inside your compound. thanks Grahame, this
compound is super!


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2195 / Virus Database: 2437/5130 - Release Date: 07/13/12




Re: Save As Directory

2012-07-27 Thread Simon Anderson
Warning about that, if you have loaded a scn file that is not in a
softimage project scene file you can get some results that arn't correct.

On Fri, Jul 27, 2012 at 8:28 PM, Gareth Bell <
gareth.b...@primefocusworld.com> wrote:

> ** ** **
>
> Yup
>
> ** **
>
> Cheers
>
> ** **
>  --
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Peter Agg
> *Sent:* 27 July 2012 11:20
> *To:* softimage@listproc.autodesk.com
> *Subject:* Re: Save As Directory
>
> ** **
>
> Application.ActiveProject.ActiveScene.Filename.Value, you mean?
>
> On 27 July 2012 11:16, Gareth Bell 
> wrote:
>
> Morning all,
>
>  
>
> Potentially having a brain-fart here.
>
>  
>
> How does Softimage know where the current scene is located? i.e. when I
> hit Save As the file browser opens in the directory in which the active
> scene is located.
>
> I want to be able to find, using a script, the exact location of the
> current scene like you can with the filebrowser's .FilePath command (but
> without bringing up a dialog)
>
>  
>
> Any clues welcomed
>
>  
>
> cheers
>
>  
>
> gareth bell | xsi artist
>
>  
>
> t: +44 (0)20 7565 1000
>
> e: gareth.b...@primefocusworld.com
>
> a: 37, dean street, **london**, w1d 4pt, uk.
>
>  
>
> www.primefocusworld.com
>
>  
>
> ** **
>



-- 
---
Simon Ben Anderson
blog: http://vinyldevelopment.wordpress.com/


Re: setting references in set data compound, python

2012-07-27 Thread Sebastian Kowalski

guess that will do. thanks Stephen.



Am 27.07.2012 um 12:09 schrieb Stephen Blair:



I was looking into this back in January.
In Jscript, here's what I came up with...I remember that sometimes  
it failed, that's why I had the try catch...


In the end it seemed easier to just use SetValue, sorry.


try
{
var oSetData = AddICECompoundNode("Set Data", oIceTree);
var oPorts = VBArray(oSetData.ExposedPorts).toArray();
var oSetOneData = oPorts[0](0).Parent;
	oSetOneData.Parameters("Reference").Value =  
"self.__PointInVolumeFlag";
	ConnectICENodes( oSetData.InputPorts( "Value" ),  
oPointInVolumeNode.OutputPorts( "result" ) );

}
catch(e)
{
LogMessage( e.description );
	SetValue( oSetData.FullName + ".Reference",  
"self.__PointInVolumeFlag", null);
	ConnectICENodes( oSetData.FullName + ".Value",  
oPointInVolumeNode.FullName + ".result");

}


-Original Message-
From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com 
] On Behalf Of Sebastian Kowalski

Sent: July-27-12 5:15 AM
To: softimage@listproc.autodesk.com
Subject: setting references in set data compound, python

hey list,
i cant figure out how to set the references of set data nodes.
this wont work:

setter0 = Application.AddICECompoundNode('Set Data', oTree)  
setter0.InputPorts(1).Value = 'this.tmp'

or
setter0.Value = 'this.tmp'
or
setter0.Parameters('reference').Value = 'this.tmp'

i refuse to use a command for that . . .





Re: Replacing clips in the Animation Mixer

2012-07-27 Thread David Saber
Thanks a lot Adam!
I’m the one who asked the same question on Si Community so it’s nice to have 
this script at last!
David


From: Adam Seeley 
Sent: Wednesday, July 25, 2012 16:12
To: softimage@listproc.autodesk.com 
Subject: Re: Replacing clips in the Animation Mixer

Hi,


Really basic replacement VBscript in case anyone else is looking for something 
similar at some point... like what I was.


A.



'--
' Very basic clip replacement script.
' Turn on "Auto Transition" option to automaticaly link the clips when added to 
the Animaton tracks.
' 1. Select clip in Animation Mixer
' 2. Select source Action
' 3. Run script

logmessage "START "
logmessage "CLIP REPLACE"

set oMixerAnimClipColl = CreateObject( "XSI.Collection" )
oMixerAnimClipColl.AddItems Selection(0)

set oActionColl = CreateObject( "XSI.Collection" )
oActionColl.AddItems Selection(1)

scaMixerAnimClipOffset=GetValue (oMixerAnimClipColl(0)& 
".actionclip.timectrl.startoffset")
logmessage scaMixerAnimClipOffset

set oAnimTrack=oMixerAnimClipColl(0).Parent

set oActionSourceModel=oActionColl(0).model

DeleteObj oMixerAnimClipColl(0)

AddClip oActionSourceModel, oActionColl(0), , oAnimTrack, scaMixerAnimClipOffset
logmessage "END "
'--















From: Simon Anderson 
To: Adam Seeley ; softimage@listproc.autodesk.com 
Sent: Wednesday, 25 July 2012, 0:50
Subject: Re: Replacing clips in the Animation Mixer


Yeah theres a way, but it has to be scripted, I have writen something like that 
on one of my last productions, but you have to be weary of some things that can 
creep in like multiple constraints and equations getting double constrained, as 
well as if you have values on parameters adn then you have them locked you end 
up with locked values.

eg. if you had an fcurve on a parameter and now thats locked, when you update 
the clip the parameter will now have a locked FCurve.




On Tue, Jul 24, 2012 at 10:09 PM, Adam Seeley  wrote:

  Hi,

  Is there a way to replace a clip in the Animation Mixer with another?

  I've had a quick look around but the only info I've got so far is a "no" from 
a previous post.

  http://www.si-community.com/community/viewtopic.php?f=9&t=855

  Here's hoping,

  Adam.




-- 
---
Simon Ben Anderson
blog: http://vinyldevelopment.wordpress.com/






RE: Save As Directory

2012-07-27 Thread Gareth Bell
Yup

 

Cheers

 



From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Peter Agg
Sent: 27 July 2012 11:20
To: softimage@listproc.autodesk.com
Subject: Re: Save As Directory

 

Application.ActiveProject.ActiveScene.Filename.Value, you mean?

On 27 July 2012 11:16, Gareth Bell 
wrote:

Morning all,

 

Potentially having a brain-fart here.

 

How does Softimage know where the current scene is located? i.e. when I
hit Save As the file browser opens in the directory in which the active
scene is located.

I want to be able to find, using a script, the exact location of the
current scene like you can with the filebrowser's .FilePath command (but
without bringing up a dialog)

 

Any clues welcomed

 

cheers

 

gareth bell | xsi artist

 

t: +44 (0)20 7565 1000

e: gareth.b...@primefocusworld.com

a: 37, dean street, london, w1d 4pt, uk.

 

www.primefocusworld.com

 

 



Re: Save As Directory

2012-07-27 Thread Peter Agg
Application.ActiveProject.ActiveScene.Filename.Value, you mean?

On 27 July 2012 11:16, Gareth Bell  wrote:

> ** ** **
>
> Morning all,
>
> ** **
>
> Potentially having a brain-fart here.
>
> ** **
>
> How does Softimage know where the current scene is located? i.e. when I
> hit Save As the file browser opens in the directory in which the active
> scene is located.
>
> I want to be able to find, using a script, the exact location of the
> current scene like you can with the filebrowser's .FilePath command (but
> without bringing up a dialog)
>
> ** **
>
> Any clues welcomed
>
> ** **
>
> cheers
>
> ** **
>
> gareth bell | xsi artist
>
>  
>
> t: +44 (0)20 7565 1000
>
> e: gareth.b...@primefocusworld.com
>
> a: 37, dean street, **london**, w1d 4pt, uk.
>
>  
>
> www.primefocusworld.com
>
> ** **
>


Save As Directory

2012-07-27 Thread Gareth Bell
Morning all,

 

Potentially having a brain-fart here.

 

How does Softimage know where the current scene is located? i.e. when I
hit Save As the file browser opens in the directory in which the active
scene is located.

I want to be able to find, using a script, the exact location of the
current scene like you can with the filebrowser's .FilePath command (but
without bringing up a dialog)

 

Any clues welcomed

 

cheers

 

gareth bell | xsi artist

 

t: +44 (0)20 7565 1000

e: gareth.b...@primefocusworld.com

a: 37, dean street, london, w1d 4pt, uk.

 

www.primefocusworld.com

 



RE: setting references in set data compound, python

2012-07-27 Thread Stephen Blair

I was looking into this back in January.
In Jscript, here's what I came up with...I remember that sometimes it failed, 
that's why I had the try catch...

In the end it seemed easier to just use SetValue, sorry.


try
{
var oSetData = AddICECompoundNode("Set Data", oIceTree);
var oPorts = VBArray(oSetData.ExposedPorts).toArray();
var oSetOneData = oPorts[0](0).Parent;
oSetOneData.Parameters("Reference").Value = "self.__PointInVolumeFlag";
ConnectICENodes( oSetData.InputPorts( "Value" ), 
oPointInVolumeNode.OutputPorts( "result" ) );
}
catch(e)
{
LogMessage( e.description );
SetValue( oSetData.FullName + ".Reference", "self.__PointInVolumeFlag", 
null);
ConnectICENodes( oSetData.FullName + ".Value", 
oPointInVolumeNode.FullName + ".result");
}


-Original Message-
From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Sebastian Kowalski
Sent: July-27-12 5:15 AM
To: softimage@listproc.autodesk.com
Subject: setting references in set data compound, python

hey list,
i cant figure out how to set the references of set data nodes.
this wont work:

setter0 = Application.AddICECompoundNode('Set Data', oTree) 
setter0.InputPorts(1).Value = 'this.tmp'
or
setter0.Value = 'this.tmp'
or
setter0.Parameters('reference').Value = 'this.tmp'

i refuse to use a command for that . . . 
<>

setting references in set data compound, python

2012-07-27 Thread Sebastian Kowalski

hey list,
i cant figure out how to set the references of set data nodes.
this wont work:

setter0 = Application.AddICECompoundNode('Set Data', oTree)
setter0.InputPorts(1).Value = 'this.tmp'
or
setter0.Value = 'this.tmp'
or
setter0.Parameters('reference').Value = 'this.tmp'

i refuse to use a command for that . . .