How to attach multiple mesh nodes to one object in blender?How do I return multiple values from a function?How to know if an object has an attribute in PythonIn Python, how do I determine if an object is iterable?Basic approach to pupil constriction/dilation of eye model in OpenGLHow to change Operator's label in Blender 2.63 depending on the context?how to export per-vertex UV coordinates in Blender export scriptExport object + skeleton from blender to Threejs and move bones manuallyx3d file export different than anticipated need other format to import modelsGetting animation to render correctly with Three.js ObjectLoaderMultiple materials or texture on low poly meshes?
Did Hitler say this quote about homeschooling?
The most secure way to handle someone forgetting to verify their account?
Why can't I hear fret buzz through the amp?
How to tell if JDK is available from within running JVM?
Do Australia and New Zealand have a travel ban on Somalis (like Wikipedia says)?
Why is an object not defined as identity morphism?
I have found a mistake on someone's code published online: what is the protocol?
Symbolic integration of logmultinormal distribution
Ethernet to USB adapter on Linux
Do medium format lenses have a crop factor?
How important are the Author's mood and feelings for writing a story?
May I use a railway velocipede on actively-used British railways?
When will the last unambiguous evidence of mankind disappear?
Pauli exclusion principle - black holes
Do pedestrians imitate auto traffic?
How much solution to fill Paterson Universal Tank when developing film?
Why don't humans perceive waves as twice the frequency they are?
Demographic consequences of closed loop reincarnation
Locked-up DOS computer beeped on keypress. What mechanism caused that?
What is actually sent/loaded to a microcontroller / stm32
Is it possible to have a career in SciComp without contributing to arms research?
🍩🔔🔥Scrambled emoji tale⚛️🎶🛒 #2️⃣
Who determines when road center lines are solid or dashed?
/bin/sh: 0: Can't open sh
How to attach multiple mesh nodes to one object in blender?
How do I return multiple values from a function?How to know if an object has an attribute in PythonIn Python, how do I determine if an object is iterable?Basic approach to pupil constriction/dilation of eye model in OpenGLHow to change Operator's label in Blender 2.63 depending on the context?how to export per-vertex UV coordinates in Blender export scriptExport object + skeleton from blender to Threejs and move bones manuallyx3d file export different than anticipated need other format to import modelsGetting animation to render correctly with Three.js ObjectLoaderMultiple materials or texture on low poly meshes?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I try to import 3d objects from one game (IGI 2: Covert Strike) into blender.
Ingame format have a one common vertex buffer, where are stored all vertices from multiple meshes.
Also have list of structs used to declare meshes, range of used vertices (from common buffer) and position of this mesh relatively to main object.
If I import full vertex boofer into one mesh i see that:
http://prntscr.com/n32e0v
This is a human model.
Head are here indide :)
http://prntscr.com/n32fcw
Well I want to separate meshes and attach those to one object.
But function
bpy.data.objects.new(name, mesh) #create object
accepts only one mesh.
Is there other way to add multiple mesh nodes to one object?
May be is posible to create one object per mesh and attach those to one main object?
But how later add a common skeleton to all this objects?
python numpy blender bpy
add a comment |
I try to import 3d objects from one game (IGI 2: Covert Strike) into blender.
Ingame format have a one common vertex buffer, where are stored all vertices from multiple meshes.
Also have list of structs used to declare meshes, range of used vertices (from common buffer) and position of this mesh relatively to main object.
If I import full vertex boofer into one mesh i see that:
http://prntscr.com/n32e0v
This is a human model.
Head are here indide :)
http://prntscr.com/n32fcw
Well I want to separate meshes and attach those to one object.
But function
bpy.data.objects.new(name, mesh) #create object
accepts only one mesh.
Is there other way to add multiple mesh nodes to one object?
May be is posible to create one object per mesh and attach those to one main object?
But how later add a common skeleton to all this objects?
python numpy blender bpy
I don't see anything withnumpy
here, please don't spam unrelated tags.
– user2699
Mar 26 at 14:28
add a comment |
I try to import 3d objects from one game (IGI 2: Covert Strike) into blender.
Ingame format have a one common vertex buffer, where are stored all vertices from multiple meshes.
Also have list of structs used to declare meshes, range of used vertices (from common buffer) and position of this mesh relatively to main object.
If I import full vertex boofer into one mesh i see that:
http://prntscr.com/n32e0v
This is a human model.
Head are here indide :)
http://prntscr.com/n32fcw
Well I want to separate meshes and attach those to one object.
But function
bpy.data.objects.new(name, mesh) #create object
accepts only one mesh.
Is there other way to add multiple mesh nodes to one object?
May be is posible to create one object per mesh and attach those to one main object?
But how later add a common skeleton to all this objects?
python numpy blender bpy
I try to import 3d objects from one game (IGI 2: Covert Strike) into blender.
Ingame format have a one common vertex buffer, where are stored all vertices from multiple meshes.
Also have list of structs used to declare meshes, range of used vertices (from common buffer) and position of this mesh relatively to main object.
If I import full vertex boofer into one mesh i see that:
http://prntscr.com/n32e0v
This is a human model.
Head are here indide :)
http://prntscr.com/n32fcw
Well I want to separate meshes and attach those to one object.
But function
bpy.data.objects.new(name, mesh) #create object
accepts only one mesh.
Is there other way to add multiple mesh nodes to one object?
May be is posible to create one object per mesh and attach those to one main object?
But how later add a common skeleton to all this objects?
python numpy blender bpy
python numpy blender bpy
asked Mar 26 at 10:48
ArtiomArtiom
134 bronze badges
134 bronze badges
I don't see anything withnumpy
here, please don't spam unrelated tags.
– user2699
Mar 26 at 14:28
add a comment |
I don't see anything withnumpy
here, please don't spam unrelated tags.
– user2699
Mar 26 at 14:28
I don't see anything with
numpy
here, please don't spam unrelated tags.– user2699
Mar 26 at 14:28
I don't see anything with
numpy
here, please don't spam unrelated tags.– user2699
Mar 26 at 14:28
add a comment |
1 Answer
1
active
oldest
votes
First off, you may consider asking this question in Blender SE too, as there is a lot of expertise about Blender in there, so they may be able to give more possible solutions to your problem.
In any case, I don't think there is any way to have one Blender object hold more than one mesh. You can however group multiple objects under one parent object, something like this (Blender 2.79b):
import bpy
# Make parent (empty object)
parent_object = bpy.data.objects.new('parent_object', None)
bpy.context.scene.objects.link(parent_object)
# Make multiple children
for i in range(4):
# Make child object (mesh object)
mesh_data = bpy.data.meshes.new('mesh_data_' + str(i + 1))
mesh_object = bpy.data.objects.new('mesh_object_' + str(i + 1), mesh_data)
# Set the parent
mesh_object.parent = parent_object
bpy.context.scene.objects.link(mesh_object)
bpy.context.scene.update()
And you will get a hierarchy like this:
Note: There are some upcoming changes to the API in 2.8, see How do I create a new object using Python in Blender 2.80?.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55355275%2fhow-to-attach-multiple-mesh-nodes-to-one-object-in-blender%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First off, you may consider asking this question in Blender SE too, as there is a lot of expertise about Blender in there, so they may be able to give more possible solutions to your problem.
In any case, I don't think there is any way to have one Blender object hold more than one mesh. You can however group multiple objects under one parent object, something like this (Blender 2.79b):
import bpy
# Make parent (empty object)
parent_object = bpy.data.objects.new('parent_object', None)
bpy.context.scene.objects.link(parent_object)
# Make multiple children
for i in range(4):
# Make child object (mesh object)
mesh_data = bpy.data.meshes.new('mesh_data_' + str(i + 1))
mesh_object = bpy.data.objects.new('mesh_object_' + str(i + 1), mesh_data)
# Set the parent
mesh_object.parent = parent_object
bpy.context.scene.objects.link(mesh_object)
bpy.context.scene.update()
And you will get a hierarchy like this:
Note: There are some upcoming changes to the API in 2.8, see How do I create a new object using Python in Blender 2.80?.
add a comment |
First off, you may consider asking this question in Blender SE too, as there is a lot of expertise about Blender in there, so they may be able to give more possible solutions to your problem.
In any case, I don't think there is any way to have one Blender object hold more than one mesh. You can however group multiple objects under one parent object, something like this (Blender 2.79b):
import bpy
# Make parent (empty object)
parent_object = bpy.data.objects.new('parent_object', None)
bpy.context.scene.objects.link(parent_object)
# Make multiple children
for i in range(4):
# Make child object (mesh object)
mesh_data = bpy.data.meshes.new('mesh_data_' + str(i + 1))
mesh_object = bpy.data.objects.new('mesh_object_' + str(i + 1), mesh_data)
# Set the parent
mesh_object.parent = parent_object
bpy.context.scene.objects.link(mesh_object)
bpy.context.scene.update()
And you will get a hierarchy like this:
Note: There are some upcoming changes to the API in 2.8, see How do I create a new object using Python in Blender 2.80?.
add a comment |
First off, you may consider asking this question in Blender SE too, as there is a lot of expertise about Blender in there, so they may be able to give more possible solutions to your problem.
In any case, I don't think there is any way to have one Blender object hold more than one mesh. You can however group multiple objects under one parent object, something like this (Blender 2.79b):
import bpy
# Make parent (empty object)
parent_object = bpy.data.objects.new('parent_object', None)
bpy.context.scene.objects.link(parent_object)
# Make multiple children
for i in range(4):
# Make child object (mesh object)
mesh_data = bpy.data.meshes.new('mesh_data_' + str(i + 1))
mesh_object = bpy.data.objects.new('mesh_object_' + str(i + 1), mesh_data)
# Set the parent
mesh_object.parent = parent_object
bpy.context.scene.objects.link(mesh_object)
bpy.context.scene.update()
And you will get a hierarchy like this:
Note: There are some upcoming changes to the API in 2.8, see How do I create a new object using Python in Blender 2.80?.
First off, you may consider asking this question in Blender SE too, as there is a lot of expertise about Blender in there, so they may be able to give more possible solutions to your problem.
In any case, I don't think there is any way to have one Blender object hold more than one mesh. You can however group multiple objects under one parent object, something like this (Blender 2.79b):
import bpy
# Make parent (empty object)
parent_object = bpy.data.objects.new('parent_object', None)
bpy.context.scene.objects.link(parent_object)
# Make multiple children
for i in range(4):
# Make child object (mesh object)
mesh_data = bpy.data.meshes.new('mesh_data_' + str(i + 1))
mesh_object = bpy.data.objects.new('mesh_object_' + str(i + 1), mesh_data)
# Set the parent
mesh_object.parent = parent_object
bpy.context.scene.objects.link(mesh_object)
bpy.context.scene.update()
And you will get a hierarchy like this:
Note: There are some upcoming changes to the API in 2.8, see How do I create a new object using Python in Blender 2.80?.
answered Mar 26 at 11:51
jdehesajdehesa
32.8k4 gold badges39 silver badges61 bronze badges
32.8k4 gold badges39 silver badges61 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55355275%2fhow-to-attach-multiple-mesh-nodes-to-one-object-in-blender%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't see anything with
numpy
here, please don't spam unrelated tags.– user2699
Mar 26 at 14:28