Setting and Retrieving TP Data Channels
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/12/2002 at 13:02, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Bool SetData(LONG pid, LONG chan, void *data, GvValueID type)
Bool GetData(LONG pid, LONG chan, void *data, GvValueID type)
How do I use these? ( I have successfully created a data channel but cannot successfully set the data in the data channel or retrieve the data ).
thanks, darf - bhodiNUT -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2002 at 05:42, xxxxxxxx wrote:
No, I cannot get these to work either. SetDataFromPort() and GetDataFromPort() seem to work just fine though. I'll ask the programmers what the deal is...
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2002 at 09:11, xxxxxxxx wrote:
Do SetDataFromPort or GetDataFromPort help me in my goal? Not sure how to use them.
FYI: My goal is to figure out exactly when a particle died. If a particle is emitted at frame 0.5 and has a life of 30 frames the death will be at frame 30.5. Unfortunately the reporte of this death does not come until frame 31. At frame 31 the retrieved particle age of that particle that died is 1.0, and the life is 1.0. So, how do I know that the actual particle death took place between frame 30 and 31 ( including the exact decimal delta )? Obviously I really do not care about the birth time. I was going to store that just so I could figure out the real time of death.
Best Regards, darf -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2002 at 12:28, xxxxxxxx wrote:
The FromPort functions are straightforward if you have an inport (Get) or an outport (Set). My guess is that the SetData and GetData nodes use these functions for data channels. Don't know if that will help you though. Creating a dummy port sounds like a mess.
And I don't know anything about TP, more than what the documentation says. So I don't know what it's support for subframe precision age is. I'll ask but the answer might be late due to the holidays.
In the meantime, perhaps you could store the particle births in a separate table? (I suspect that TP itself, if it's support for subframes is as weak as you describe, only gives birth on whole frames. So if there's no match in your own table you could trust what Age() says.) Just a hack workaround as always...
Merry Christmas! -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2002 at 12:52, xxxxxxxx wrote:
The FromPort functions are straightforward if you have an inport (Get) or an outport (Set). My guess is that the SetData and GetData nodes use these functions for data channels. Don't know if that will help you though. Creating a dummy port sounds like a mess.
It does sound like a mess. I am sure the other stuff works, just have to wait for the programmers to respond.
And I don't know anything about TP, more than what the documentation says. So I don't know what it's support for subframe precision age is. I'll ask but the answer might be late due to the holidays.
That's cool. Appreciate the effort.
In the meantime, perhaps you could store the particle births in a separate table? (I suspect that TP itself, if it's support for subframes is as weak as you describe, only gives birth on whole frames. So if there's no match in your own table you could trust what Age() says.) Just a hack workaround as always...
I can do that but I still have to make the table as large as the complete TP particle count as the particles can bounce from group to group and may come into the scope of my system later than their birth ( although I would still require the birth ). So I figured it would make sense to make the data available so it could be used for other purposes as well as my own if the table was going to be allocated anyway.
Happy Holidays, darf -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/01/2003 at 07:31, xxxxxxxx wrote:
There's a confirmed bug in GetData() and SetData(). It will be fixed in the next version. No workaround is available at the moment.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/01/2003 at 10:06, xxxxxxxx wrote:
As always, I appreciate your time, and effort. J2 goes to the shelf!
darf