Ton bloc notes
Derniers sujets
» [ SKETCHUP généralité ] - Fuste et particularité
par REGIS Hier à 22:11
» [ SKETCHUP plugins ] Parametric Modeling (WIP)
par tenrev Hier à 18:14
» [ SKETCHUP plugins ] licence Artisan en promo à 29 $ offre limitée dans le temps
par vick Hier à 16:36
» [ AUTRES LOGICIELS ] ZBrush : Nouveautés Dispo 2 Mars M à J Gratuite!
par tenrev Hier à 13:53
» [ SKETCHUP généralité ] ANIMATION
par tenrev Hier à 8:41
» [ CINEMA4D ] Mesurer la distance entre deux cube
par startchup Hier à 5:04
» [ AUTRES LOGICIELS ] UModeler Lite version free- outil de modélisation 3D-création de level pour Unity
par tenrev Mer 24 Fév 2021 - 9:46
» [ SKETCHUP objets ] ¨Plus de 1000 objets dans ma ware house
par vick Mar 23 Fév 2021 - 14:59
» [ SKETCHUP ] Tutoriel : Importer un arbre 3D réaliste dans SketchUp
par Fab Mar 23 Fév 2021 - 11:28
» [ SKETCHUP plugins ] Material Browser
par Fab Mar 23 Fév 2021 - 11:17
» [ SKETCHUP généralité ] Appel aux bonnes volontés...
par Fab Mar 23 Fév 2021 - 10:57
» [ PRESENTATION ] Daniel - urdan8465
par Fab Mar 23 Fév 2021 - 10:44
» [ PRESENTATION ] Paméla
par Fab Mar 23 Fév 2021 - 10:43
» [ ARCHICAD-OBJETS GDL ] Object GSM couleur et aspect
par Coulou Lun 22 Fév 2021 - 11:47
» [AUTRES LOGICIELS] Moi3D beta 4.0 - 64 bits Mac / PC 27 Octobre 2020
par Pilou Dim 21 Fév 2021 - 17:30
» [ SKETCHUP composants dynamiques ] lcomposants live
par tenrev Sam 20 Fév 2021 - 20:13
» [ SKETCHUP généralité ] Gros soucis de textures
par youyou40 Sam 20 Fév 2021 - 8:42
» [ SKETCHUP généralité ] Laurent Brixius nous a quitté
par tenrev Ven 19 Fév 2021 - 15:33
» [ SKETCHUP tutos ] Dessiner des ressorts cylindriques, coniques ou en spirale
par jerryvento Ven 19 Fév 2021 - 14:47
» [ SKETCHUP Layout ] Excellent tuto layout
par urdan8465 Ven 19 Fév 2021 - 10:41
» [ SKETCHUP plugins ] MC Allign Ends by Mariocha (free)
par tenrev Jeu 18 Fév 2021 - 21:48
» [ SKETCHUP généralité ] la case de mesures
par jerryvento Jeu 18 Fév 2021 - 18:53
» [ CINEMA4D ] Un bille qui tombe dans un tube
par startchup Jeu 18 Fév 2021 - 8:32
» [SKETCHUP PLUGINS ] Pour les plieurs de tôles!
par Pilou Mer 17 Fév 2021 - 19:01
» [ ARCHICAD ] LIER PLAN DE REFERENCE SUR UN AUTRE FICHIER
par Christophe Fortineau Mer 17 Fév 2021 - 13:54
» [ CINEMA4D ] Ombre et clonneur
par startchup Mer 17 Fév 2021 - 4:21
» [ CINEMA4D ] Zbergue
par startchup Mar 16 Fév 2021 - 21:06
» [ CINEMA4D ] Escalier en colimaçon
par startchup Mar 16 Fév 2021 - 20:51
» [ SKETCHUP plugins ] Layers/Tags In Time
par Samuel Tallet-Sabathé Mar 16 Fév 2021 - 18:57
» [ ARCHICAD ] Nouveau Mac OS BIG SUR ...
par Coulou Mar 16 Fév 2021 - 10:16
» [ ARCHICAD ] Baie à galandage
par AK40Cess Mar 16 Fév 2021 - 7:33
» [ SKETCHUP tutos ] Réalisation grille perforée
par REGIS Sam 13 Fév 2021 - 16:32
» [ CINEMA4D ] Monde virtuel page web
par startchup Ven 12 Fév 2021 - 14:43
» [PRESENTATION] Bonjourbonjour
par Rascal Ven 12 Fév 2021 - 7:45
» Nouvelle version de Fredoscale 2.0h
par svoboda Jeu 11 Fév 2021 - 18:38
par REGIS Hier à 22:11
» [ SKETCHUP plugins ] Parametric Modeling (WIP)
par tenrev Hier à 18:14
» [ SKETCHUP plugins ] licence Artisan en promo à 29 $ offre limitée dans le temps
par vick Hier à 16:36
» [ AUTRES LOGICIELS ] ZBrush : Nouveautés Dispo 2 Mars M à J Gratuite!
par tenrev Hier à 13:53
» [ SKETCHUP généralité ] ANIMATION
par tenrev Hier à 8:41
» [ CINEMA4D ] Mesurer la distance entre deux cube
par startchup Hier à 5:04
» [ AUTRES LOGICIELS ] UModeler Lite version free- outil de modélisation 3D-création de level pour Unity
par tenrev Mer 24 Fév 2021 - 9:46
» [ SKETCHUP objets ] ¨Plus de 1000 objets dans ma ware house
par vick Mar 23 Fév 2021 - 14:59
» [ SKETCHUP ] Tutoriel : Importer un arbre 3D réaliste dans SketchUp
par Fab Mar 23 Fév 2021 - 11:28
» [ SKETCHUP plugins ] Material Browser
par Fab Mar 23 Fév 2021 - 11:17
» [ SKETCHUP généralité ] Appel aux bonnes volontés...
par Fab Mar 23 Fév 2021 - 10:57
» [ PRESENTATION ] Daniel - urdan8465
par Fab Mar 23 Fév 2021 - 10:44
» [ PRESENTATION ] Paméla
par Fab Mar 23 Fév 2021 - 10:43
» [ ARCHICAD-OBJETS GDL ] Object GSM couleur et aspect
par Coulou Lun 22 Fév 2021 - 11:47
» [AUTRES LOGICIELS] Moi3D beta 4.0 - 64 bits Mac / PC 27 Octobre 2020
par Pilou Dim 21 Fév 2021 - 17:30
» [ SKETCHUP composants dynamiques ] lcomposants live
par tenrev Sam 20 Fév 2021 - 20:13
» [ SKETCHUP généralité ] Gros soucis de textures
par youyou40 Sam 20 Fév 2021 - 8:42
» [ SKETCHUP généralité ] Laurent Brixius nous a quitté
par tenrev Ven 19 Fév 2021 - 15:33
» [ SKETCHUP tutos ] Dessiner des ressorts cylindriques, coniques ou en spirale
par jerryvento Ven 19 Fév 2021 - 14:47
» [ SKETCHUP Layout ] Excellent tuto layout
par urdan8465 Ven 19 Fév 2021 - 10:41
» [ SKETCHUP plugins ] MC Allign Ends by Mariocha (free)
par tenrev Jeu 18 Fév 2021 - 21:48
» [ SKETCHUP généralité ] la case de mesures
par jerryvento Jeu 18 Fév 2021 - 18:53
» [ CINEMA4D ] Un bille qui tombe dans un tube
par startchup Jeu 18 Fév 2021 - 8:32
» [SKETCHUP PLUGINS ] Pour les plieurs de tôles!
par Pilou Mer 17 Fév 2021 - 19:01
» [ ARCHICAD ] LIER PLAN DE REFERENCE SUR UN AUTRE FICHIER
par Christophe Fortineau Mer 17 Fév 2021 - 13:54
» [ CINEMA4D ] Ombre et clonneur
par startchup Mer 17 Fév 2021 - 4:21
» [ CINEMA4D ] Zbergue
par startchup Mar 16 Fév 2021 - 21:06
» [ CINEMA4D ] Escalier en colimaçon
par startchup Mar 16 Fév 2021 - 20:51
» [ SKETCHUP plugins ] Layers/Tags In Time
par Samuel Tallet-Sabathé Mar 16 Fév 2021 - 18:57
» [ ARCHICAD ] Nouveau Mac OS BIG SUR ...
par Coulou Mar 16 Fév 2021 - 10:16
» [ ARCHICAD ] Baie à galandage
par AK40Cess Mar 16 Fév 2021 - 7:33
» [ SKETCHUP tutos ] Réalisation grille perforée
par REGIS Sam 13 Fév 2021 - 16:32
» [ CINEMA4D ] Monde virtuel page web
par startchup Ven 12 Fév 2021 - 14:43
» [PRESENTATION] Bonjourbonjour
par Rascal Ven 12 Fév 2021 - 7:45
» Nouvelle version de Fredoscale 2.0h
par svoboda Jeu 11 Fév 2021 - 18:38
formulaire/diaporama
format r.b
- william bilcotLoquace
-
Date d'inscription : 14/10/2009
Nombre de messages : 53
Points : 81
Age : 44
Localisation : bretagne
Emploi : charpentier
salut a tout le monde.
je cherche un programme pour lire un scrip r.b.
pour installer un plugin sketchup.
merci.
#-----------------------------------------------------------------------------
# polar_zonohedron v 1.0
# Copyright 2010, Rob Bell
# author: Rob Bell
#
# Permission to use, copy, modify, and distribute this software for
# any purpose and without fee is hereby granted, provided the above
# copyright notice appear in all copies
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#-----------------------------------------------------------------------------
require "sketchup.rb"
include Math
def polar_zonohedron #frequency, pitch = atan(sqrt(2)/2), len = 1.0 # frequency,pitch,length
mo = Sketchup.active_model
mo.start_operation $exStrings.GetString("polar_zonohedron")
prompts = [$exStrings.GetString("Frequency"), $exStrings.GetString("Pitch in radians"), $exStrings.GetString("Length")]
values = [8, "atan( sqrt(2)/2 )", 12.inch]
results = inputbox prompts, values, $exStrings.GetString("Polar Zonohedron")
return if not results # This means that the user canceld the operation
frequency = results[0]
pitch = eval( results[1] )
len = results[2]
ents = mo.active_entities
grp = ents.add_group
ents = grp.entities
pts=[]
#we begin by setting pts[0] to the origin
pts[0] = Geom::Point3d.new(0,0,0)
vector = Geom::Vector3d.new(cos(pitch),0,sin(pitch) ) #tilt pitch vector up the xz plane
vector.length = len
#Using the origin as the initial generator we iterate thru each zone of the zonohedron
#our first task is to define the four points of the base rhomb for this zone
#at the end the pts[3] becomes our new origin for the rhomb of the next zone
1.upto(frequency-1){ |i|
p_rotate = Geom::Transformation.rotation( pts[0] , Geom::Vector3d.new(0,0,1), i*2*PI/frequency )
#obtain the other three points of the rhomb face
pts[1] = pts[0].transform vector
pts[3] = pts[1].transform( p_rotate )
pts[2] = pts[3].transform( vector )
#we now have the 4 points which make this zone's base rhomb
#so we rotate around the origin frequency times making a star pattern of faces
0.upto(frequency-1){ |j|
f_rotate = Geom::Transformation.rotation( Geom::Point3d.new(0,0,0) , Geom::Vector3d.new(0,0,1), j*2*PI/frequency )
ents.add_face( pts.collect{|p| p.transform(f_rotate)} )
}
#set the origin for the rhomb of the next zone
pts[0] = pts[3]
}
mo.commit_operation
end
if( not file_loaded?("polar_zonohedron.rb") )
add_separator_to_menu("Plugins")
UI.menu("Plugins").add_item($exStrings.GetString("Polar Zonohedron")) { polar_zonohedron }
end
#-----------------------------------------------------------------------------
file_loaded("polar_zonohedron.rb")
je cherche un programme pour lire un scrip r.b.
pour installer un plugin sketchup.
merci.
#-----------------------------------------------------------------------------
# polar_zonohedron v 1.0
# Copyright 2010, Rob Bell
# author: Rob Bell
#
# Permission to use, copy, modify, and distribute this software for
# any purpose and without fee is hereby granted, provided the above
# copyright notice appear in all copies
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#-----------------------------------------------------------------------------
require "sketchup.rb"
include Math
def polar_zonohedron #frequency, pitch = atan(sqrt(2)/2), len = 1.0 # frequency,pitch,length
mo = Sketchup.active_model
mo.start_operation $exStrings.GetString("polar_zonohedron")
prompts = [$exStrings.GetString("Frequency"), $exStrings.GetString("Pitch in radians"), $exStrings.GetString("Length")]
values = [8, "atan( sqrt(2)/2 )", 12.inch]
results = inputbox prompts, values, $exStrings.GetString("Polar Zonohedron")
return if not results # This means that the user canceld the operation
frequency = results[0]
pitch = eval( results[1] )
len = results[2]
ents = mo.active_entities
grp = ents.add_group
ents = grp.entities
pts=[]
#we begin by setting pts[0] to the origin
pts[0] = Geom::Point3d.new(0,0,0)
vector = Geom::Vector3d.new(cos(pitch),0,sin(pitch) ) #tilt pitch vector up the xz plane
vector.length = len
#Using the origin as the initial generator we iterate thru each zone of the zonohedron
#our first task is to define the four points of the base rhomb for this zone
#at the end the pts[3] becomes our new origin for the rhomb of the next zone
1.upto(frequency-1){ |i|
p_rotate = Geom::Transformation.rotation( pts[0] , Geom::Vector3d.new(0,0,1), i*2*PI/frequency )
#obtain the other three points of the rhomb face
pts[1] = pts[0].transform vector
pts[3] = pts[1].transform( p_rotate )
pts[2] = pts[3].transform( vector )
#we now have the 4 points which make this zone's base rhomb
#so we rotate around the origin frequency times making a star pattern of faces
0.upto(frequency-1){ |j|
f_rotate = Geom::Transformation.rotation( Geom::Point3d.new(0,0,0) , Geom::Vector3d.new(0,0,1), j*2*PI/frequency )
ents.add_face( pts.collect{|p| p.transform(f_rotate)} )
}
#set the origin for the rhomb of the next zone
pts[0] = pts[3]
}
mo.commit_operation
end
if( not file_loaded?("polar_zonohedron.rb") )
add_separator_to_menu("Plugins")
UI.menu("Plugins").add_item($exStrings.GetString("Polar Zonohedron")) { polar_zonohedron }
end
#-----------------------------------------------------------------------------
file_loaded("polar_zonohedron.rb")
tu n'as pas besoin de programme spécifique il faut juste mettre ton fichier rb dans le répertoire plugin de sketchup et lors du démarrage de SU le plugin sera chargé en mémoire et sera utilisable
mais j'ai peut être dit une connerie et pas bien compris ta question

mais j'ai peut être dit une connerie et pas bien compris ta question

-------------------------------------------------------------------------------------------------------------------------
je ne sais pas grand chose , mais le peu que je sache , je le partage
1 PC fixe avec proc Rizen 9 3950X 32 threads - cg nvidia geforce RTX3080 - 64 go de ram DDssd 1To
1 PC portable MSI TITAN PRO écran 17''|win10 64 bits| i7 Quad core|ram 32go| CG GFORCE GTX1080 avec 8go
1 casque VR Occulus Rift - 1 vieux PC portable Dell sous Linux Ubuntu 18 1 vieux pc portable HP sous chromebook
Modélisation : Sketchup - Rhino - Pconplanner Rendu: Enscape - Keyshot - Unreal Engine - Artlantis - Twinmotion Autres: Photoshop - Illustrator - Indesign - Vidéostudio - After Effect - Première
juste : .rb
pas r.b.
:icon_wink:
pas r.b.
:icon_wink:
-------------------------------------------------------------------------------------------------------------------------
" heureux les fêlés car ils laissent passer la lumière "
- william bilcotLoquace
-
Date d'inscription : 14/10/2009
Nombre de messages : 53
Points : 81
Age : 44
Localisation : bretagne
Emploi : charpentier
bonsoir.
j'ai essayé de copier et coller le plungin, mais il ne veut pas ce coller dans le fichier plugin sketchup.
c'est pour cela que je vous demandé s'il fallait transformer le rb que j'ai mis sur mon premier message en ?????
j'ai essayé de copier et coller le plungin, mais il ne veut pas ce coller dans le fichier plugin sketchup.
c'est pour cela que je vous demandé s'il fallait transformer le rb que j'ai mis sur mon premier message en ?????

- Fabmodérateur
-
Humeur : Rester COOL......
Date d'inscription : 03/10/2008
Nombre de messages : 4729
Points : 5280
Age : 54
Localisation : Normandie
Emploi : Dessinateur en bâtiment et génie civil
Salut William, j'aime beaucoup ton avatar cela me rappelle quand je relevais des charpentes dans de veilles longères....

-------------------------------------------------------------------------------------------------------------------------
Dites-vous bien que dans la vie,ne pas reconnaître son talent,c'est favoriser la réussite des médiocres. [Vous devez être inscrit et connecté pour voir cette image]
Autocad | Photoshop | Sketchup pro | The Panorama Factory | Easy Google Maps Downloader
Créer un compte ou se connecter pour répondre
Vous devez être membre pour répondre.
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum