attatch Tags
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 10:16, xxxxxxxx wrote:
Thanks again
While I wait for answer I thought about anather way. You called now too.
When I create objekt I want to store it in a variable.
But my create-routine is in a function.
And its looks like variables in a function(){} are isolate.
When I create a variable in main(){} I cant get it in the function.
I search in SDK, but I don't found anything about global variables.
I have a funcion for generateBone() and for generateBoneUnderAnother().
I want store the objects in variables, but the counter in the functions start by "0" every call function.
Where can I found how can I make global variables? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 10:43, xxxxxxxx wrote:
Global variables are declared outside of functions. Don't know if this is possible in the Console, but you would do it like this (assumes that there are a maximum number of bones to allocate as an array) :
var Bones = new(array,64); ... main() { }
You could also put the declaration in main() and fill the variable from the function return value:
generateBone() { var Bone = new(BoneObject); ... return Bone; } main() { var Bone = new(array,64); for (var j = 0; j < 64; j++) { Bone[j] = generateBone(); } }
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 11:33, xxxxxxxx wrote:
Yes, outside the main() makes global.var objid = new(array,20); main() { }
is not possible?!
A global array?
In this array I want store Boneobjects.
Is it possible ?
I read in SDK, that this is possible:
Bevor I take your time with more questions, there are some basic Questions.
That must be possible for my AutoRig-Script.
Can I add Mocca-IK Tags to a objects? (I found in the SDK only the basic C4D-Tags to add)
Another Way, when I can't create Mocca-IK tags, can I remove and copy exists?
With command() I can start the mocca-IK Setup to an object-hierarchie.
When I can copy and paste, and remove, it is ok, too!
Can I add nodes with connections to an Expresso-Tag? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 12:20, xxxxxxxx wrote:
var Bones = new(array,64);
main(doc, op)
{}
generate a SyntaxError. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 15:28, xxxxxxxx wrote:
You may have to place it into main() then or do it this way:
var Bones;
main(doc,op)
{
Bones = new(array,64);
} -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/10/2005 at 02:51, xxxxxxxx wrote:
Thats work
Greate.
But I need Bone-Array as BoneObject structure.
I am so silly? Or is it so heavy?
I'm sorry, that I must ask again:var Bones, objc; setbone(vdoc, addname, Atag, Btag, Ctag) { objc++; Bone[objc]=new(BoneObject); Bone[objc]->SetName(addname); vdoc->InsertObject(Bone[objc],NULL,NULL); } main(doc,op) { objc=-1; Bones = new(array,64); setbone (doc, "Arm[00]", NULL, NULL, NULL); }
Why doesn't work ?
For thank you and all who helps other I write my learnings down:
http://www.total3d.de/index.php?b=mmdocu&wo=viewkapitel&bo=10&ka=78#titel -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/10/2005 at 05:33, xxxxxxxx wrote:
- Why doesn't work?
- And how can I add Mocca_IK Tags?
Normal IK-tag works, Expresso-tags too. - But how can I add Nodes and connections in Expresso Tag?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/10/2005 at 10:07, xxxxxxxx wrote:
- Why doesn't work?
2a) How can I copy a Tag from one Bone to another? - And how can I add Mocca_IK Tags?
C4D IK-tags works, Expresso-tags, too. - But how can I add Nodes and connections in Expresso Tag?
- Why doesn't work?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/10/2005 at 11:21, xxxxxxxx wrote:
Is there a chance, or was the question to much ?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/10/2005 at 07:51, xxxxxxxx wrote:
All right !
That questions are answered by Maxon!
Thanks for all your help!
Very helpfull tipps - This was first time I learn Coffee !
I'm glad about this forum -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2005 at 11:57, xxxxxxxx wrote:
- I don't see any direct problem. What error do you get?
2a) var newtag->GetClone(); bone2->InsertTag(newtag)
2,3) It's not possible to add Mocca_IK tags or to alter Xpressions in C.O.F.F.E.E.
- I don't see any direct problem. What error do you get?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2005 at 21:18, xxxxxxxx wrote:
@mikael sterner
you say its impossible to add MOCCA-IK tags through COFFEE.
But what about if i use a Plugin *.cof written in COFFEE, and use that plugin to create my starting scene with all the objects and their tags...
Is it then possible to create "foreign" tags?? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2005 at 21:29, xxxxxxxx wrote:
And if your answer is no.
Is there a documented Fileformat-specification for the *.c4d file?
also NO?
i thought so -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2005 at 11:43, xxxxxxxx wrote:
Yes, the answer is unfortunately no. To add Mocca_IK tags or to alter Xpressions you need to use C++.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2005 at 11:45, xxxxxxxx wrote:
There is no public documentation of the current c4d file format. Documentation for the file format used by C4D R5 is available here at PluginCafe, though this won't help you with Mocca_IK or Xpressions.