Problem with CurrentStateToObject
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/04/2006 at 19:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.5
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
I'm performing a SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,bc,MODIFY_ALL); command on an object because I need to access its deformed points. I then get the next object with GetNext and read the deformed points from it. Finaly, I remove the generated object with Remove(), because I only needed it for getting the deformed points, like I said. The problem is that this is a COFFEE expression and, as soon as the operations are performed, all objects get deselected. I can't even select an object in the Object Manager because, as soon as I do so, the object gets deselected.
Is there any way to recover what was selected before performing the SendModelingCommand... Remove() ?
Or, is there any other way to get access to deformed points, without having to generate a new object in the editor, even if I delete it afterwards?Rui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/05/2006 at 13:41, xxxxxxxx wrote:
I believe CURRENTSTATETOOBJECT isn't allowed in C.O.F.F.E.E. expressions, assuming that you use it to operate on the scene of the expression tag. At the expression stage of scene building you would in that case need to clone the document first.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/07/2008 at 11:53, xxxxxxxx wrote:
Rui, did you get this to work?
Cloning the doc or somehow else?
Just ran into the same issue wanting to use the deformed
state of a spline to get a position along it using COFFEE
expression pluginTag.Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/07/2008 at 15:55, xxxxxxxx wrote:
Nope, I did never managed to do it successfully Rui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/07/2008 at 16:08, xxxxxxxx wrote:
Thanks for letting me know. Darn..
We really need to get the deformed state via coffee directly....
I started to set up a Storedocumentselection() function, but feel
unconfy about it, given that it could be alot of objects running
the expression....So the only way I know of, that is a tedious manual workaround, is to bake¨the splines (in linear, no interpolation mode) using the PointCache Tag. Then set the interpolation back to the wanted type.
Oh well, I hope coffee is still going somewhere (given that scripting
is recently implemented).Cheers
Lennart