[TOOL] Blender hard-point drag and drop V4

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

rjtwins
Posts: 20
Joined: Wed, 3. Nov 10, 13:50
x4

Re: [TOOL] Blender hard-point drag and drop V3

Post by rjtwins »

You are looking at a textureless rendered version because you are in the rendered display mode, you need to change to the solid display mode.
Do this by pressing this:
Spoiler
Show
Image
And switching to the right mode.

Also, watch/read tutorials on blender if you are not familiar. Its a beast of a tool both in capabilities and accessing them.
Luckily there is a ton of reference material and video tutorials out there.
ZEFFEZ
Posts: 10
Joined: Thu, 6. Sep 18, 06:15
x4

Re: [TOOL] Blender hard-point drag and drop

Post by ZEFFEZ »

sco1981 wrote: Thu, 20. Dec 18, 18:27
rjtwins wrote: Thu, 20. Dec 18, 15:37 Tbo at this point I don't know what else to write in terms of guides and tutorials.
You will just have to try and ask questions, I'll rewrite the how-to depending on questions then.
your video tutorial helps a lot, thank you.
Now i get an error for creating the xml.

KeyError: 2 [8620] Failed to execute script main.

i think i have all things done to this point, what you did in the video.

this is the content of input.x3d:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D version="3.0" profile="Immersive" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd">
	<head>
		<meta name="filename" content="input.x3d" />
		<meta name="generator" content="Blender 2.79 (sub 0)" />
	</head>
	<Scene>
		<NavigationInfo headlight="true"
		                visibilityLimit="0.0"
		                type='"EXAMINE", "ANY"'
		                avatarSize="0.25, 1.75, 0.75"
		                />
		<Background DEF="World"
		            groundColor="0.051 0.051 0.051"
		            skyColor="0.051 0.051 0.051"
		            />
		<Transform DEF="left-top-L-lturret_2_ifs_TRANSFORM"
		           translation="1.255379 2.505108 1.665561"
		           scale="0.295000 0.305000 0.002500"
		           rotation="-0.037649 0.993917 -0.103495 0.706145"
		           >
			<Group DEF="template_007">
				<Shape>
					<Appearance>
					</Appearance>
					<IndexedFaceSet solid="false"
					                coordIndex="0 4 11 8 -1 2 0 8 9 -1 10 11 4 6 -1 6 0 2 -1 7 10 9 3 -1 1 9 8 -1 9 10 6 2 -1 5 10 7 -1 3 1 5 7 -1 6 4 0 -1 1 3 9 -1 5 11 10 -1 5 1 8 11 -1 "
					                >
						<Coordinate DEF="coords_template_007"
						            point="-1.000000 -1.000000 -1.000000 -0.220199 0.508693 22.962940 -1.000000 1.000000 -1.000000 -0.220199 0.923999 22.962940 1.000000 -1.000000 -1.000000 0.195107 0.508693 22.962940 1.000000 1.000000 -1.000000 0.195107 0.923999 22.962940 -1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 -1.000000 1.000000 "
						            />
					</IndexedFaceSet>
				</Shape>
			</Group>
		</Transform>
		<Transform DEF="left-top-L-lturret_1_ifs_TRANSFORM"
		           translation="1.289292 3.201737 1.637023"
		           scale="0.295000 0.305000 0.002500"
		           rotation="-0.037649 0.993917 -0.103496 0.706145"
		           >
			<Group DEF="template_006">
				<Shape>
					<Appearance>
					</Appearance>
					<IndexedFaceSet solid="false"
					                coordIndex="0 4 11 8 -1 2 0 8 9 -1 10 11 4 6 -1 6 0 2 -1 7 10 9 3 -1 1 9 8 -1 9 10 6 2 -1 5 10 7 -1 3 1 5 7 -1 6 4 0 -1 1 3 9 -1 5 11 10 -1 5 1 8 11 -1 "
					                >
						<Coordinate DEF="coords_template_006"
						            point="-1.000000 -1.000000 -1.000000 -0.220199 0.508693 22.962940 -1.000000 1.000000 -1.000000 -0.220199 0.923999 22.962940 1.000000 -1.000000 -1.000000 0.195107 0.508693 22.962940 1.000000 1.000000 -1.000000 0.195107 0.923999 22.962940 -1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 -1.000000 1.000000 "
						            />
					</IndexedFaceSet>
				</Shape>
			</Group>
		</Transform>
	</Scene>
</X3D>
Video tutorial? what video? Can I get a link?
rjtwins
Posts: 20
Joined: Wed, 3. Nov 10, 13:50
x4

Re: [TOOL] Blender hard-point drag and drop V3

Post by rjtwins »

Open the spoilers and read.
I'll also add it to the documentation on GitHub.
sco1981
Posts: 282
Joined: Fri, 14. Sep 18, 14:47
x4

Re: [TOOL] Blender hard-point drag and drop V4

Post by sco1981 »

Are you still around?
Got a bug with the Quarternion after exporting.
ned228
Posts: 29
Joined: Sun, 15. Jun 14, 21:20
x4

Re: [TOOL] Blender hard-point drag and drop V4

Post by ned228 »

The python version gives error cant find lxml eetree and crashes how do you fix this

Return to “X4: Foundations - Scripts and Modding”