Search found 23 matches

by Vasten
Thu Jun 30, 2022 1:50 pm
Forum: Python scripting and macros
Topic: group objects with shapes?
Replies: 1
Views: 314

group objects with shapes?

is it possible to make a group object with a shape? i can make custom python group i can make custom feature python objects but i cant find a way to make a container that has its own shape for example, the part boolean ops like fusion, create an object that had sub objects like a group is it possibl...
by Vasten
Wed Jun 29, 2022 3:13 am
Forum: Toponaming forum
Topic: How to disable auto active document switching?
Replies: 5
Views: 1120

How to disable auto active document switching?

I and a friend often have the problem of performing action causes a page jump >>> # App.setActiveDocument("x") >>> # App.ActiveDocument=App.getDocument("x") >>> # Gui.ActiveDocument=Gui.getDocument("x") Away from the doc I'm working on and into some other doc for seemin...
by Vasten
Sun Jun 26, 2022 10:22 am
Forum: Python scripting and macros
Topic: GroupPython Not Exporting in STL
Replies: 3
Views: 404

Re: GroupPython Not Exporting in STL

god

hours of playing and I just found it

export mode was set to disabled.. god i feel stupid.. i didnt know there was a flag just for this

Seems a bit odd that it defaults to disabled lol
by Vasten
Sun Jun 26, 2022 10:14 am
Forum: Python scripting and macros
Topic: GroupPython Not Exporting in STL
Replies: 3
Views: 404

Re: GroupPython Not Exporting in STL

Update: did a quick test I tried adding a Part::PropertyPartShape called Shape to the Group and then setting that to be the Shape of an existing Box Still nothing Buyt my FeaturePython objects all export fine Is there a way to create a FeaturePython Object that can have children just like a Group ob...
by Vasten
Sun Jun 26, 2022 9:26 am
Forum: Python scripting and macros
Topic: GroupPython Not Exporting in STL
Replies: 3
Views: 404

GroupPython Not Exporting in STL

I created my own DocumentObjectGroupPython fine, having custom icons is great when i select it in tree view it highlights all of its object green as normal for any group or container but when i export to step or stl the file is empty if a select the internal objects they export fine is there somethi...
by Vasten
Sun Jun 26, 2022 6:35 am
Forum: Toponaming forum
Topic: How to create a container object
Replies: 3
Views: 1234

Re: How to create a container object

chrisb wrote: Sat Jun 25, 2022 6:27 am Moved to Link Branch forum.
i am unclear why this was moved here

I am reading up on the toponaming issue

but i cant see what that has to do with my question
by Vasten
Sat Jun 25, 2022 5:12 am
Forum: Toponaming forum
Topic: How to create a container object
Replies: 3
Views: 1234

How to create a container object

Is there a way to make my Feature python object a container Its not super critical, but I would like to create my own container elements with custom icons Im currently relying on the Part container for everything, but it would be nice to be able to create my own so tree view is clearer and easier to...
by Vasten
Sat Jun 25, 2022 5:04 am
Forum: Python scripting and macros
Topic: rotation operators
Replies: 4
Views: 642

Re: rotation operators

Thank you so much multiplying by inverted rotation is just what i needed.. thank you so much :) Let's see if poking him a little will solve also your problem, due to timezone problem it may need some hours to obtain an answer: To expand on @marioalexis reply, how would you figure this out for yourse...
by Vasten
Thu Jun 23, 2022 10:19 am
Forum: Python scripting and macros
Topic: rotation operators
Replies: 4
Views: 642

rotation operators

pardon my ignorance suppose I have 2 Placements, object A and B I want to rotate A to be the same global orientation as B But because they are in different containers, I cant simply set the rotations to be equal I can check global Placements of A and B.... but how do i determine the difference (rota...
by Vasten
Tue Jun 21, 2022 7:53 am
Forum: Python scripting and macros
Topic: edit points in a bez curve
Replies: 2
Views: 352

Re: edit points in a bez curve

nevermind

after more testing and trial and error i figured it out

you have to reset the full array

so

Code: Select all

pts=bez.Points
pts[x]=vector(blahblahblah)
bez.Points=pts
this works