Haamu
02-04-2006, 01:28 AM
I am trying to create sort of particle trajectory using script operator in pflow. The script adds knots to existing spline shape.
on ChannelsUsed pCont do
(
pCont.useposition = true
)
on Init pCont do
(
)
on Proceed pCont do
(
pCont.particleIndex = 1
addknot $line 1 #corner #curve pcont.particleposition
updateshape $line
)
on Release pCont do
(
)
Now the weird thing is that at first it was working fine and i had some other functionalities there but when i started adding more complex stuff it started acting up. It is supposed to create only one knot per frame but instead it randomly creates 3 to 5 knots. If i run the anim frame by frame it works fine but when i actually play the anim it gets messed. it worked at first but now it doesn't and i'm totally confused :curious:. I guess i could -not add- new knots when there already is one in that place but how can i check that? Mainly, how can I check the position of the very last knot? I can't find any function for that :shrug:
question 2:
while editing the script operator it quite randomly while typing pops up an error message saying something like "there is an error in the script" and then jumps to the area where the error is supposed to be...while the error is actually the unfinished thing i'm just typing. It happens even when the script or whole pflow is disabled.Is there any way to disable this feature? It's kinda annoying.
on ChannelsUsed pCont do
(
pCont.useposition = true
)
on Init pCont do
(
)
on Proceed pCont do
(
pCont.particleIndex = 1
addknot $line 1 #corner #curve pcont.particleposition
updateshape $line
)
on Release pCont do
(
)
Now the weird thing is that at first it was working fine and i had some other functionalities there but when i started adding more complex stuff it started acting up. It is supposed to create only one knot per frame but instead it randomly creates 3 to 5 knots. If i run the anim frame by frame it works fine but when i actually play the anim it gets messed. it worked at first but now it doesn't and i'm totally confused :curious:. I guess i could -not add- new knots when there already is one in that place but how can i check that? Mainly, how can I check the position of the very last knot? I can't find any function for that :shrug:
question 2:
while editing the script operator it quite randomly while typing pops up an error message saying something like "there is an error in the script" and then jumps to the area where the error is supposed to be...while the error is actually the unfinished thing i'm just typing. It happens even when the script or whole pflow is disabled.Is there any way to disable this feature? It's kinda annoying.
