How to make multiple float property in pythonHow to create a custom UI?How can I transfer a collection of float values to a node socket?How do you check for a specific game engine property with python? (2.7x only)How to redefine an Float Property after create it?How can I cast a text element to float in animation-nodes?Blender Python Property change event - Execute function?Access operator's property with pythonCreate custom property for sequencer strip in pythonUsing new PointerProperty with custom propertySelf Property vs. Property GroupHow to make a ui element without using a blender property
Can you get infinite turns with this 2 card combo?
Why won't the ground take my seed?
Does anycast addressing add additional latency in any way?
When is it ok to add filler to a story?
Set vertical spacing between two particular items
Sir Alex Ferguson advice OR Sir Alex Ferguson's advice
How do I find and plot the intersection of these three surfaces?
What happens when your group is victim of a surprise attack but you can't be surprised?
Short story with brother-sister conjoined twins as protagonists?
“Transitive verb” + interrupter+ “object”?
How to write or read powers (math) by words?
How can I create ribbons like these in Microsoft word 2010?
MASS MicroSystems MO/128 Magneto-Optic Drive mystery
Why does the A-4 Skyhawk sit nose-up when on ground?
Articles before "covenant"?
Three column layout
Signing using digital signatures?
Generate and graph the Recamán Sequence
Why does the numerical solution of an ODE move away from an unstable equilibrium?
Why is Madam Hooch not a professor?
Find smallest index that is identical to the value in an array
Did Chinese school textbook maps (c. 1951) "depict China as stretching even into the central Asian republics"?
Why isn’t the tax system continuous rather than bracketed?
A player is constantly pestering me about rules, what do I do as a DM?
How to make multiple float property in python
How to create a custom UI?How can I transfer a collection of float values to a node socket?How do you check for a specific game engine property with python? (2.7x only)How to redefine an Float Property after create it?How can I cast a text element to float in animation-nodes?Blender Python Property change event - Execute function?Access operator's property with pythonCreate custom property for sequencer strip in pythonUsing new PointerProperty with custom propertySelf Property vs. Property GroupHow to make a ui element without using a blender property
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
What is the python code to make multiple float property like in the mapping node?
python
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
What is the python code to make multiple float property like in the mapping node?
python
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
What is the python code to make multiple float property like in the mapping node?
python
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
What is the python code to make multiple float property like in the mapping node?
python
python
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Jun 17 at 6:03
user75587user75587
61 bronze badge
61 bronze badge
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user75587 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Use a FloatVectorProperty and set its subtype to 'XYZ' or 'TRANSLATION'.
Currently other available subtypes of that property are: 'COLOR', 'DIRECTION', 'VELOCITY', 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION', 'AXISANGLE', 'COLOR_GAMMA', 'LAYER'.

Ripped from: How to create a custom UI?
import bpy
from bpy.props import (FloatVectorProperty,
PointerProperty
)
from bpy.types import (Panel,
PropertyGroup
)
# ------------------------------------------------------------------------
# Scene Properties
# ------------------------------------------------------------------------
class MyProperties(PropertyGroup):
my_float_vector: FloatVectorProperty(
name = "Float Vector Value",
description="Something",
default=(0.0, 0.0, 0.0),
min= 0.0,
max = 0.1,
subtype = 'XYZ'
# 'COLOR', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
# 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION',
# 'AXISANGLE', 'XYZ', 'COLOR_GAMMA', 'LAYER'
)
# ------------------------------------------------------------------------
# Panel in Object Mode
# ------------------------------------------------------------------------
class OBJECT_PT_CustomPanel(Panel):
bl_idname = "object.custom_panel"
bl_label = "My Panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_context = "objectmode"
@classmethod
def poll(self,context):
return context.object is not None
def draw(self, context):
layout = self.layout
scene = context.scene
mytool = scene.my_tool
layout.prop(mytool, "my_float_vector", text="")
# ------------------------------------------------------------------------
# Registration
# ------------------------------------------------------------------------
classes = (
MyProperties,
OBJECT_PT_CustomPanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.my_tool = PointerProperty(type=MyProperties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.my_tool
if __name__ == "__main__":
register()
$endgroup$
$begingroup$
Could argue the node prop highlighted in question is subtype'TRANSLATION'given the length unit displayed.
$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
add a comment |
$begingroup$
Blender built-in mathutils-Vector
class mathutils.Vector(seq)
This object gives access to Vectors in Blender.
Parameters: seq (sequence of numbers) – Components of the vector, must be a sequence of at least two
mathutils.Vector
Most of the Blender code contain this Vector component for value modification.
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "502"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
user75587 is a new contributor. Be nice, and check out our Code of Conduct.
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%2fblender.stackexchange.com%2fquestions%2f143072%2fhow-to-make-multiple-float-property-in-python%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Use a FloatVectorProperty and set its subtype to 'XYZ' or 'TRANSLATION'.
Currently other available subtypes of that property are: 'COLOR', 'DIRECTION', 'VELOCITY', 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION', 'AXISANGLE', 'COLOR_GAMMA', 'LAYER'.

Ripped from: How to create a custom UI?
import bpy
from bpy.props import (FloatVectorProperty,
PointerProperty
)
from bpy.types import (Panel,
PropertyGroup
)
# ------------------------------------------------------------------------
# Scene Properties
# ------------------------------------------------------------------------
class MyProperties(PropertyGroup):
my_float_vector: FloatVectorProperty(
name = "Float Vector Value",
description="Something",
default=(0.0, 0.0, 0.0),
min= 0.0,
max = 0.1,
subtype = 'XYZ'
# 'COLOR', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
# 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION',
# 'AXISANGLE', 'XYZ', 'COLOR_GAMMA', 'LAYER'
)
# ------------------------------------------------------------------------
# Panel in Object Mode
# ------------------------------------------------------------------------
class OBJECT_PT_CustomPanel(Panel):
bl_idname = "object.custom_panel"
bl_label = "My Panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_context = "objectmode"
@classmethod
def poll(self,context):
return context.object is not None
def draw(self, context):
layout = self.layout
scene = context.scene
mytool = scene.my_tool
layout.prop(mytool, "my_float_vector", text="")
# ------------------------------------------------------------------------
# Registration
# ------------------------------------------------------------------------
classes = (
MyProperties,
OBJECT_PT_CustomPanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.my_tool = PointerProperty(type=MyProperties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.my_tool
if __name__ == "__main__":
register()
$endgroup$
$begingroup$
Could argue the node prop highlighted in question is subtype'TRANSLATION'given the length unit displayed.
$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
add a comment |
$begingroup$
Use a FloatVectorProperty and set its subtype to 'XYZ' or 'TRANSLATION'.
Currently other available subtypes of that property are: 'COLOR', 'DIRECTION', 'VELOCITY', 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION', 'AXISANGLE', 'COLOR_GAMMA', 'LAYER'.

Ripped from: How to create a custom UI?
import bpy
from bpy.props import (FloatVectorProperty,
PointerProperty
)
from bpy.types import (Panel,
PropertyGroup
)
# ------------------------------------------------------------------------
# Scene Properties
# ------------------------------------------------------------------------
class MyProperties(PropertyGroup):
my_float_vector: FloatVectorProperty(
name = "Float Vector Value",
description="Something",
default=(0.0, 0.0, 0.0),
min= 0.0,
max = 0.1,
subtype = 'XYZ'
# 'COLOR', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
# 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION',
# 'AXISANGLE', 'XYZ', 'COLOR_GAMMA', 'LAYER'
)
# ------------------------------------------------------------------------
# Panel in Object Mode
# ------------------------------------------------------------------------
class OBJECT_PT_CustomPanel(Panel):
bl_idname = "object.custom_panel"
bl_label = "My Panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_context = "objectmode"
@classmethod
def poll(self,context):
return context.object is not None
def draw(self, context):
layout = self.layout
scene = context.scene
mytool = scene.my_tool
layout.prop(mytool, "my_float_vector", text="")
# ------------------------------------------------------------------------
# Registration
# ------------------------------------------------------------------------
classes = (
MyProperties,
OBJECT_PT_CustomPanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.my_tool = PointerProperty(type=MyProperties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.my_tool
if __name__ == "__main__":
register()
$endgroup$
$begingroup$
Could argue the node prop highlighted in question is subtype'TRANSLATION'given the length unit displayed.
$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
add a comment |
$begingroup$
Use a FloatVectorProperty and set its subtype to 'XYZ' or 'TRANSLATION'.
Currently other available subtypes of that property are: 'COLOR', 'DIRECTION', 'VELOCITY', 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION', 'AXISANGLE', 'COLOR_GAMMA', 'LAYER'.

Ripped from: How to create a custom UI?
import bpy
from bpy.props import (FloatVectorProperty,
PointerProperty
)
from bpy.types import (Panel,
PropertyGroup
)
# ------------------------------------------------------------------------
# Scene Properties
# ------------------------------------------------------------------------
class MyProperties(PropertyGroup):
my_float_vector: FloatVectorProperty(
name = "Float Vector Value",
description="Something",
default=(0.0, 0.0, 0.0),
min= 0.0,
max = 0.1,
subtype = 'XYZ'
# 'COLOR', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
# 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION',
# 'AXISANGLE', 'XYZ', 'COLOR_GAMMA', 'LAYER'
)
# ------------------------------------------------------------------------
# Panel in Object Mode
# ------------------------------------------------------------------------
class OBJECT_PT_CustomPanel(Panel):
bl_idname = "object.custom_panel"
bl_label = "My Panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_context = "objectmode"
@classmethod
def poll(self,context):
return context.object is not None
def draw(self, context):
layout = self.layout
scene = context.scene
mytool = scene.my_tool
layout.prop(mytool, "my_float_vector", text="")
# ------------------------------------------------------------------------
# Registration
# ------------------------------------------------------------------------
classes = (
MyProperties,
OBJECT_PT_CustomPanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.my_tool = PointerProperty(type=MyProperties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.my_tool
if __name__ == "__main__":
register()
$endgroup$
Use a FloatVectorProperty and set its subtype to 'XYZ' or 'TRANSLATION'.
Currently other available subtypes of that property are: 'COLOR', 'DIRECTION', 'VELOCITY', 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION', 'AXISANGLE', 'COLOR_GAMMA', 'LAYER'.

Ripped from: How to create a custom UI?
import bpy
from bpy.props import (FloatVectorProperty,
PointerProperty
)
from bpy.types import (Panel,
PropertyGroup
)
# ------------------------------------------------------------------------
# Scene Properties
# ------------------------------------------------------------------------
class MyProperties(PropertyGroup):
my_float_vector: FloatVectorProperty(
name = "Float Vector Value",
description="Something",
default=(0.0, 0.0, 0.0),
min= 0.0,
max = 0.1,
subtype = 'XYZ'
# 'COLOR', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
# 'ACCELERATION', 'MATRIX', 'EULER', 'QUATERNION',
# 'AXISANGLE', 'XYZ', 'COLOR_GAMMA', 'LAYER'
)
# ------------------------------------------------------------------------
# Panel in Object Mode
# ------------------------------------------------------------------------
class OBJECT_PT_CustomPanel(Panel):
bl_idname = "object.custom_panel"
bl_label = "My Panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_context = "objectmode"
@classmethod
def poll(self,context):
return context.object is not None
def draw(self, context):
layout = self.layout
scene = context.scene
mytool = scene.my_tool
layout.prop(mytool, "my_float_vector", text="")
# ------------------------------------------------------------------------
# Registration
# ------------------------------------------------------------------------
classes = (
MyProperties,
OBJECT_PT_CustomPanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.my_tool = PointerProperty(type=MyProperties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.my_tool
if __name__ == "__main__":
register()
edited Jun 17 at 9:47
answered Jun 17 at 8:48
brockmannbrockmann
1,4195 silver badges30 bronze badges
1,4195 silver badges30 bronze badges
$begingroup$
Could argue the node prop highlighted in question is subtype'TRANSLATION'given the length unit displayed.
$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
add a comment |
$begingroup$
Could argue the node prop highlighted in question is subtype'TRANSLATION'given the length unit displayed.
$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
$begingroup$
Could argue the node prop highlighted in question is subtype
'TRANSLATION' given the length unit displayed.$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
Could argue the node prop highlighted in question is subtype
'TRANSLATION' given the length unit displayed.$endgroup$
– batFINGER
Jun 17 at 9:33
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
$begingroup$
True, Added. Thanks @batFINGER
$endgroup$
– brockmann
Jun 17 at 9:49
add a comment |
$begingroup$
Blender built-in mathutils-Vector
class mathutils.Vector(seq)
This object gives access to Vectors in Blender.
Parameters: seq (sequence of numbers) – Components of the vector, must be a sequence of at least two
mathutils.Vector
Most of the Blender code contain this Vector component for value modification.
$endgroup$
add a comment |
$begingroup$
Blender built-in mathutils-Vector
class mathutils.Vector(seq)
This object gives access to Vectors in Blender.
Parameters: seq (sequence of numbers) – Components of the vector, must be a sequence of at least two
mathutils.Vector
Most of the Blender code contain this Vector component for value modification.
$endgroup$
add a comment |
$begingroup$
Blender built-in mathutils-Vector
class mathutils.Vector(seq)
This object gives access to Vectors in Blender.
Parameters: seq (sequence of numbers) – Components of the vector, must be a sequence of at least two
mathutils.Vector
Most of the Blender code contain this Vector component for value modification.
$endgroup$
Blender built-in mathutils-Vector
class mathutils.Vector(seq)
This object gives access to Vectors in Blender.
Parameters: seq (sequence of numbers) – Components of the vector, must be a sequence of at least two
mathutils.Vector
Most of the Blender code contain this Vector component for value modification.
answered Jun 17 at 7:32
HikariztwHikariztw
1,6563 silver badges15 bronze badges
1,6563 silver badges15 bronze badges
add a comment |
add a comment |
user75587 is a new contributor. Be nice, and check out our Code of Conduct.
user75587 is a new contributor. Be nice, and check out our Code of Conduct.
user75587 is a new contributor. Be nice, and check out our Code of Conduct.
user75587 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Blender Stack Exchange!
- 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.
Use MathJax to format equations. MathJax reference.
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%2fblender.stackexchange.com%2fquestions%2f143072%2fhow-to-make-multiple-float-property-in-python%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