PDA

View Full Version : Remove Expression



papou
07-05-2004, 08:56 AM
Hi, i know how to create Expressions with Lscript. But how to remove them?!
thx!

papou
07-06-2004, 03:52 PM
we continue to write the code but still don't know how to remove an expression.
In fact we need a "clean unused" possibility...

I hope we are not losing our time in this way....

papou
07-09-2004, 02:10 AM
need some help on this one!
please Lernie! Reiner! Nyarlathothep! D|ver! Tom! ... Aaahh!

#lwrs_web
07-10-2004, 12:29 PM
There are only 3 commands for expressions:

GE_CreateExpression
GE_AttachExpression
GE_AttachExpressionID


The only way is this:

Read the expression names at the end of the scene file

---
{ GE_Expression_Lib
1
Expression "CENTER_X_N2" "center(N1.pos(Time), N3.pos(Time)).x " 0
...
}
---


then check if they are used on any channel:

---
".EnvExprLink"
0
1
"CENTER_X_N2"
---

papou
07-10-2004, 02:13 PM
thanks for the reply!
We will try this way if that work. if not, we will do without expressions...

faulknermano
07-13-2004, 02:55 PM
Originally posted by papou
need some help on this one!
please Lernie! Reiner! Nyarlathothep! D|ver! Tom! ... Aaahh!

reiner is d|ver. just wanted to point that out. :D

hope it went well.

papou
07-13-2004, 05:32 PM
and you r Nyarlathothep?;)

tajino
11-16-2013, 10:12 AM
Still no GE_RemoveExpression, GE_DeleteExpression or GE_ClearExpression command after so many years?

RebelHill
11-18-2013, 10:56 AM
yep... those are added in 11.6

tajino
11-18-2013, 11:35 AM
yep... those are added in 11.6

What was added in 11.6?

RebelHill
11-18-2013, 11:58 AM
the GE commands you referred to...

check the 11.6 sdk.

tajino
11-19-2013, 02:11 PM
Thanks! Pasted it for anyone searching for it :

LW11.6 :
Added graph editor commands to allow detaching of expressions,
and clearing of unused expressions.


GE_DetachExpression schannelname sexpressionname [nclear]
GE_DetachExpressionID xchannelid sexpressionname [nclear]

Detached an expression from the channel identified either by name or by channel ID.
If the optional clear argument is set to 1, then the expression will be cleared
if it is no longer used by any channel.



GE_DetachExpressions schannelname [nclear]
GE_DetachExpressionsID xchannelid [nclear]

Detached all expressions from the channel identified either by name or by channel ID.
If the optional clear argument is set to 1, then any expression detached will be cleared
if it is no longer used by any channel.



GE_ClearUnusedExpression sexpressionname
GE_ClearUnusedExpressions

Clears an expression, or all expressions, that are not in use by any channel.

Dodgy
11-19-2013, 06:48 PM
Cool stuff :) I'll add those into my lscript docs for those that search there.

tajino
11-19-2013, 09:11 PM
Cool stuff :) I'll add those into my lscript docs for those that search there.

I'm one of those that search there :)