Alright, so here’s the word from support:
"""
Hi Nathan,
What you are looking for is currently not possible, and is a "fair bit of
work" according to Engineering when this subject was last brought up.
There is a feature request for it called:
Bug 31829 - Add ParticlePython node
"""
I’m guessing the original request was somewhat more complex than what you’re
after, but they would both require similar added functionality.
-Nathan
From: Nathan Rusch
Sent: Friday, November 16, 2012 11:33 AM
To: Nuke user discussion
Subject: Re: [Nuke-users] lookup curve in particle expression
Hmm, this is a bit of a tricky chicken-and-egg problem that I hadn’t noticed
before.
Basically, the particle channel variables aren’t available in the nested
expression context(s) created by calling something like [expression {node.knob
* id}], and they aren’t available as pure TCL locals. Combine this with the
fact that you can’t reference knob names directly in particle expressions, and
it doesn’t seem like there is currently a way to mix knob values with particle
channel values.
I’ve submitted a ticket to support, so I’ll update this with information as I
get it.
-Nathan
From: Gabor L. Toth
Sent: Thursday, November 15, 2012 8:50 AM
To: Nuke user discussion
Subject: Re: [Nuke-users] lookup curve in particle expression
Hi Nathan, thanks for the reply! Yes that is working, even in a particle
expression. But, when I try to use the "id", or other particle attribute, it
doesn't react when changing the lookup curve. What is the correct syntax to use
those?
I'm using this:
[expression ColorLookup.lut.master([id/100])]
This doesn't give an error, but looks it gives the default 0-1 curve, even when
the lookup curve is modified.
What could be the problem?
Thanks,
Gabor
On Wed, Nov 14, 2012 at 8:27 PM, Nathan Rusch <nathan_ru...@hotmail.com> wrote:
[expression lookupnode.lut.master(xVal)]
e.g.
[expression myLookup.lut.master(.25)]
-Nathan
From: Gabor L. Toth
Sent: Wednesday, November 14, 2012 8:19 AM
To: Nuke user discussion
Subject: [Nuke-users] lookup curve in particle expression
Hi,
can I use somehow the result of a lookup curve at a given value, in a
particle expression?
I would like to control the absolute position of a group of particles
according to the curve, and by particle id. Something like particle curve node,
but not by time, but id.
Tcl expression [value lookupnode.lut.master] always gives a constant value. I
tried with python [python lookupnode['lut'].getValueAt( [id/maxNumber] )] but
this behaves very strange: doesn't give an error, but not really doing what I
want (not changing if I change the lookup curve)
What could be a proper syntax?
Thanks,
Gabor
------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users