Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / command 'glue object to limb' problem

Author
Message
T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 16th Aug 2010 23:41 Edited at: 17th Aug 2010 00:00
i can't use limbs in do loop? or something similar like:




in other words above code is not working for me. but do i need to make mesh or something? and then add limb? or is that not necessary?

if i build something in my editor can i attach a limb to a object on that very moment?
or do i need that to do that in my load startup?
but if i need that to do in my load startup, then i can't use it because the object numbers dont exist on load startup...
(making a editor)


i read alot on limbs on the forum, but never saw a example on what i try to do.
can someone provide me some information on how to solve this?

help is greatly appreciated!

*happy coding on his 3D Construx Editor*
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 17th Aug 2010 02:10
Get the Matrix1Utils if you don't already have them. There are some very useful limb commands in there.

Your code snippet doesn't give much information about what the objects are, what the numbers represent, etc.. So it's hard to tell where something is going wrong.

Are you loading an object, then loading more objects to attach to the main object as limbs?

If so, then you'll want to make a mesh out of the objects you want to attach as limbs, and then use the APPEND LIMB command from the Matrix1Utils. Then use OFFSET LIMB and ROTATE LIMB to position them where you want them.

T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 17th Aug 2010 11:59
the objects are just boxes made in dbpro.
the numbers in GLUE OBJECT TO LIMB 3,2,1,0 stands for: i want object cube 3 on object cube 2, and 1 is the limb number.

so i have a few boxes, say 4 boxes made in dbpro then i want after that attach box 3 on box 2.
if i rotate box 2, box 3 rotate with box 2...right?

ow btw, they are instances of each other, is that a problem?

but if i dont load a object i dont have to use meshes? (because i use mainly dbpro boxes)

*happy coding on his 3D Construx Editor*
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Aug 2010 15:42
to do what you want you'll need to do the glue command three times.

play with this and then you will how it works.



Dark Physics makes any hot drink go cold.
T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 20th Aug 2010 17:22
ty for your code snippet howdo.
i did experiment with it, but with a instance object i cant use limbs? see my code: they dont rotate and they dont get offset..



do i miss something there?

*happy coding on his 3D Construx Editor*
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Aug 2010 17:56
Quote: "where the original model data is to remaing largely unchanged. "


the above taken form the help file, this is why you cannot seem to do what you want works fine if you use clone or make more objects, just won't work using instance object.

Dark Physics makes any hot drink go cold.
T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 20th Aug 2010 18:35
that was a big disappointment

but if i use clone object whats faster:

1000 instances dbpro boxes
or
1000 cloned dbpro boxes?

iam glad it works with clone object



and a last question:

can i use 'glue object to limb' in a function or do i really need to use it in load startup?

becuase its a editor and i want make a object and then 'glue object to limb' on a object. is this possible?

( offtopic question: how do you get the nice colors between your code tags? )

*happy coding on his 3D Construx Editor*
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Aug 2010 20:40
Quote: "( offtopic question: how do you get the nice colors between your code tags? )"


that one done like this, where you have code you then put lang=dbp so it looks like code lang=dbp inside the first [ ] set.

so it [?code lang=dbp] without the ?.

on the other question you can, but check out perform limb check to see how you go about it.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-24 11:34:23
Your offset time is: 2024-11-24 11:34:23