I'm asking the question straightforward : How do you re order the point
ID of an object ?
I have an object
NbPoint = 121
Point ID = 0 to 120
I'd like to offset with a value of 120 so that the
Point ID = 120 to 240
each time I try to set some ID, Ice turns red or yellow.
Get Self.ID > Add 120 > Set Self.IDoffset turns yellow on the object.
And it doesn't work if I try to store that IDoffset in another Null object.
What is the good method ?
Arrays and me....
Thanks
I know it's redundant, but say you wanted to have access to some of
the BlurTools and some future plugin by somebody said in its
requirements it needed your PyQtForSoftimage plugin, if I installed
yours while BlurTools are still installed, do they conflict?
And as a dev, will it be easy enough to detect either is installed and
pick one to use without having to change most of the UI coding? I
assume since yours is the Blur one stripped out, the function names
and such are mostly/almost the same?
Can't wait to try it when the compiler is ready. ;)
Cheers,
-- Alan
Self.ID is read-only.
Self.ID is only for particles, also. To get an index of Point IDs from
geometry, Get Point Position -> Get Element Index (as seen inside the
"Get Point ID" factory compound.)
May I ask.. why do you need to set it? Can't you use a custom
attribute with another name in whatever that needs it later in the
tree?
-- Alan
I think what you were looking for is the modulo node.
For example, if you have point IDs 0 to 8 and you modulo by 3, it will return the following:
Point. ID Returned modulo
0 -> 0
1 -> 1
2 -> 2
3 -> 0
4 -> 1
5 -> 2
6 -> 0
7 -> 1
8 -> 2
So if you take your point Ids and modulo by 120, I think it should split out your particles just like you want them!
Didn't think of the Element Index....
I agree, it's not very clean. I started storing my datas in a Null at
the beginning.
But I'm still testing, changing animations and idea.
I kept going back and forth between the 2 Icetrees, finally I found
faster (and messier) to have everything under the same tree.
That's why ;)
Le 13/10/2011 16:42, Alan Fregtman a �crit :
--
-------------------------------------------
Stefan Kubicek Co-founder
-------------------------------------------
keyvis digital imagery
Wehrgasse 9 - Grï¿œner Hof
1050 Vienna Austria
Phone: +43/699/12614231
--- www.keyvis.at ste...@keyvis.at ---
-- This email and its attachments are
--confidential and for the recipient only--
Group hug!
thanks for your help, i am exploring this also with the help of the blur
code as reference. we should be able to avoid this little annoyance in the
long term.
s
On Sun, Oct 16, 2011 at 3:40 PM, jo benayoun <joben...@gmail.com> wrote:
Hum, you're right.
It seems to be an interpreter specific problem, as there is no loop that
keep alive the global scope, objects are deleted, but variables kept.
We have still access to the local scope (the class members), but if we make
a supercall to a variable defined at the global level, it will not be able
to find the object (=None).
That is why, we don't have this problem on loaded modules.
I think the implementation is not in cause, its just the way of scripting
works :D
(I will continue to explore this case later !)
jo
--
-------------------------------------------
Stefan Kubicek Co-founder
-------------------------------------------
keyvis digital imagery
Wehrgasse 9 - Grüner Hof
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
But pyside is very interesting, there is no reason this couldn't work
with pyside. In fact if you are interested we could investigate this
together.
*written with my thumbs
On Oct 17, 2011, at 6:58 AM, Xavier Lapointe
>> � � � � Wehrgasse 9 - Gr�ner Hof
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
*written with my thumbs
On Oct 17, 2011, at 9:00 AM, Alan Fregtman <alan.f...@gmail.com>
wrote:
>>>> Wehrgasse 9 - Grüner Hof
Here's my scenario :
I have a few hundreds of particles emited, that are going from goal to
goal. The goals are Polymeshes (arabic pattern stuff like).
I need to put one particle on each point of the goal. There must be no
particle between 2 points, and no points without a particle on it (no
holes).
So far so good, I've made a nice little compound tha manage the goal
behavior nicely. The positioning of the particles is made by ParticleID,
wich means :
ParticleID 1 goes on to Goal PointID 1
ParticleID 2 goes on to Goal PointID 2
ParticleID 3 goes on to Goal PointID 3
etc.
But, my problem is that my goal polymeshes are not clean geometric
ordered objects. Meaning that Point1 can be very far from Point2. (As
opposite to a Sphere or a Torus where points have their IDs growing next
to each other).
So this create sometimes, un-elegant particles movement, that I'd like
to have a bit of control on.
So, as mentionned above, is it possible to Set a "FakeID" number to the
points of my goal polymesh ?
For example, can I use a translating "volume", and say that the first
vertex that is entering the volume gets a fake ID of 1, the next vertex
gets ID of 2, etc, etc ?
I have no Idea of the method to use just to "apply" a fake numberID to
some vertices. Or if it is even allowed.
..Or if it even a good idea ...
Get Point ID -> Add (+ 1) --> SetData[self.MyCustomIDOrWhateverYouWannaCallIt]
(By the act of getting the point ID you force the context to be per-point.)
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
import sys
from PyQt4.QtGui import *
app = QApplication(sys.argv)
button = QPushButton("Compile this shit", None)
button.show()
app.exec_()
I was wondering how can you convert instanced models to geometry. I
believed there used to be a script available in the old netview.
Thanks,
Dwayne
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
For more details on my process, I used cmake-gui to generate the
pre-compilation files and compiled with QtCreator.
Thank you for your help. Cheers !
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtSql import *
# DB type, host, user, password...
db =
QSqlDatabase.addDatabase("QMYSQL");
db.setHostName("akaweb");
db.setDatabaseName("cris");
db.setUserName("root");
db.setPassword("root");
db.open()
Simon Ben Anderson Lead Developer + Lead Rigger Triggerfish Studios http://www.triggerfish.co.za
--
----------
Michal
http://uk.linkedin.com/in/mdoniec